EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on May 10, 2016, 04:27:58 AM



Title: Datebox - disable selection of dates < today
Post by: devnull on May 10, 2016, 04:27:58 AM
Hi;

How can I prevent the user from selecting or entering a date that is earlier than today, whilst still allowing the datebox to accept dates eariler than today that were loaded during form('load').

So I only want to prevent the user from selecting post-dates, but if the value was already selected when it was not post-dated then it should be accepted.

Thanks


Title: Re: Datebox - disable selection of dates < today
Post by: jarry on May 10, 2016, 05:21:08 PM
You can restrict the selecting date range in the drop-down calendar, or attach a validation type to the datebox. Please look at http://www.jeasyui.com/demo/main/index.php?plugin=DateBox&theme=default&dir=ltr&pitem=Restrict%20Date