| | |
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 |
acid2 ajax ajaxcode ajaxexample ajaxjspservlets automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





