EasyUI Forum
November 04, 2025, 11:54:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datebox - disable selection of dates < today  (Read 8479 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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
« Last Edit: May 10, 2016, 04:29:48 AM by devnull » Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!