Originally Posted by Johnny87auxsm
Oh and this is incorrect, when i type a date say 12/12/2001 i still get a alert?
var d = "01/01/2009";
var ds = d.split("/");
if ((ds <2000) || (ds > 2004))
alert ("Please enter Years between 2000 and 2004");
One more time: NO MATTER WHAT anybody puts into any <form> field, *THAT CODE* is ONLY going to test the string you are using there: "01/01/2009".
So it is *ALWAYS* going to give the alert message.
IT IS NOT TESTING ANYTHING AT ALL FROM THE <FORM>.
And no, I'm not going to fix that for you, since you figured out how to test other form fields, apparently.