![]() |
| ||
| Date Validation in HTML Hi, This is the first time i am posting any thread.Please let me know where i went wrong in posting my problem. PROBLEM:-I am having 2 calenders - one is from_date & the other is to_date.The difference between the two dates which i select in the respective calenders (from_date:-06/08/25 , to_date:-06/08/30)should not be more than 5.In case it is ,it should throw an alert.I want to know the javascript for this .If anyone can help me out with this as soon as possible. Thanks, Top. |
| ||
| Re: Date Validation in HTML Without seeing your script, I would suggest using an if statement. something along the lines of if (dateb-datea > 5) { alert('The dates are more than 5 days apart'); } |
| All times are GMT -4. The time now is 9:37 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC