guyneo
asked on
How to validate a Date field with JQuery
Hi Experts,
I am a Jquery newbie. I am making a webpage where I am using date picker in Jquery to supply the calender for two input fields. I want to validate the date after the selection is done or the user types a date on his own.
Also the first input field is checkin and the second one is check out. So I need also make sure that they can't select the same date in the check out field as they do in check in date
can you please help me figure this out?
Thanks in advance guys
I am a Jquery newbie. I am making a webpage where I am using date picker in Jquery to supply the calender for two input fields. I want to validate the date after the selection is done or the user types a date on his own.
Also the first input field is checkin and the second one is check out. So I need also make sure that they can't select the same date in the check out field as they do in check in date
can you please help me figure this out?
Thanks in advance guys
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please post a link to your page.
ASKER
@gurvinder I will give it a try. I am wondering if Jquery validate plugin will be able to do this with ease?
I don't mean to be rude, but the more information you provide to us regarding your problem the faster you will receive a solution that you can implement quickly, rather than having everyone to guess (or even skip over) your question. If you had provided your page code, somebody might have already coded the solution for you.
Regards
Regards
ASKER
No offense taken Sam. What you say is right.
However the developement machine and hence the webpage is not accesible from outside. So I can't post the link. I can post the relevant part of the form if that would help to get an idea of what I need. It is a basic book/document library application The webpage I am trying to validate is pretty simple. Regular Date fields: One field for checkOut and One for CheckIn.
However the developement machine and hence the webpage is not accesible from outside. So I can't post the link. I can post the relevant part of the form if that would help to get an idea of what I need. It is a basic book/document library application The webpage I am trying to validate is pretty simple. Regular Date fields: One field for checkOut and One for CheckIn.
Okay. What is the format of the date you are trying to validate? DD/MM/YY?
ASKER
Yes. or DD/MM/YYYY
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.