EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Darrel on September 28, 2016, 09:29:09 AM



Title: Datebox issue [Solved]
Post by: Darrel on September 28, 2016, 09:29:09 AM
Hello,

I have the following code in the reloado link mentioned as follows: http://code.reloado.com/exazuq/2/edit (http://code.reloado.com/exazuq/2/edit)

I require a few things to be done:
1) The value from the date box must be the date mentioned inside the value attribute of the input box. As seen in the reloado code the date in the value is 26/09/2016 but however it is populating the current system date there. I want the date to be set as 26/09/2016 only until/unless the user changes it from the calendar.
2) On trying to change the date from the calendar that opens up, the date does not get changed. How can I enable the date to get changed accordingly.
3) When I submit the form, with a valid date, still it highlights the datebox in red indicating that there is some error in the field.

Please could you guide me on, how these problems can be solved.

Regards,
Darrel.


Title: Re: Datebox issue
Post by: stworthy on September 28, 2016, 05:40:16 PM
Some errors occur in your 'myparser' function. Please look at this updated example, it works fine.
http://code.reloado.com/exazuq/3/edit


Title: Re: Datebox issue
Post by: Darrel on September 28, 2016, 10:44:38 PM
Hello stworthy,

Thanks a lot, it works now :)

Regards,
Darrel.