View Single Post
Old 01-02-2013, 10:44 PM   PM User | #4
j4v3d
New Coder

 
Join Date: Mar 2009
Location: UK
Posts: 34
Thanks: 6
Thanked 0 Times in 0 Posts
j4v3d is an unknown quantity at this point
Quote:
Originally Posted by xelawho View Post
Have a look at the code posted in this thread:
http://www.codingforums.com/showthread.php?t=285082

basically, the idea is that when the first date is selected the minDate for the second date is set via options.

No need for validation or blocking the form submission - the user just can't pick a date that doesn't make sense.

For extra security, you can make those inputs read-only. The date picker will still work on them, but you won't be able to type values in from the keyboard

oh, yes - and as Andrew points out, the datepicker will only work using the IDs of the inputs - class names are very problematic
Thank your for taking out the time and replying to my thread I shall get cracking on this in the morning and I shall keep you updated of how I am getting on - got a feeling I may need a little help on this. I'll update the thread tomorrow stay tuned
__________________
MJCoder
Twitter
j4v3d is offline   Reply With Quote