wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes validate date in javascript not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "validate date in javascript not working" Watch "validate date in javascript not working" New topic
Author

validate date in javascript not working

Nash kumar
Greenhorn

Joined: Sep 23, 2012
Posts: 20
I am trying to validate date based on date entered in first textbox. If second textbox exceeds one year from the date entered in first textbox, then it should display an alert and blank the second date field textbox. Both the textboxes are readonly and gets the values from calender. I tried the below code and validation is not working. any help!


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I'm a bit confused about what this code is supposed to do:



Could you explain it in a bit more detail?

 
Don't get me started about those stupid light bulbs.
 
subject: validate date in javascript not working
 
Similar Threads
assign Database values to textbox rows on form
Edit Multiple rows in a table
datepicker problem
Unable to validate row if any one of the textbox values are entered in that row
2 functions at onsubmit