| | |
Date Validation in HTML
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
Without seeing your script, I would suggest using an if statement.
something along the lines of
something along the lines of
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
if (dateb-datea > 5) { alert('The dates are more than 5 days apart'); }
![]() |
Similar Threads
- date validation (ASP.NET)
- Microsoft Access date validation Need a solution (Computer Science)
- need date validation help (MS Access and FileMaker Pro)
- Microsoft Access date validation Need a solution (Database Design)
- Hi Access Date Problem (> Now +7 Days And < Now +2 Months) (Computer Science)
- Microsoft Access date validation (Computer Science)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Ajax - evaluate scripts in response
- Next Thread: Simple AJAX with xml
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





