This is the page where I need the date validation to work:
[url]http://watkinsfamilywinery.com/testing/fax.html
And here’s the HTML for the date as it is:
[CODE]<tr>
<td class=”reqd” align=”right” valign=”top”>* </td>
<td class=”form”>Expiration Date:<br> (ie. 06/07)</td>
<td class=”copy”>month <select name=”ccexpmon” id=”ccexpmon” style=”margin: 0px; font-family: Arial,Helvetica,sans-serif; font-size: 11px; color: #333333; border: solid 1px;”>
<option value=”” selected></option>
<option value=”01″>01</option>
<option value=”02″>02</option>
<option value=”03″>03</option>
<option value=”04″>04</option>
<option value=”05″>05</option>
<option value=”06″>06</option>
<option value=”07″>07</option>
<option value=”08″>08</option>
<option value=”09″>09</option>
<option value=”10″>10</option>
<option value=”11″>11</option>
<option value=”12″>12</option>
</select> / year <input type=”text” name=”ccexpyr” id=”ccexpyr” value=”” style=”margin: 0px; font-family: Arial,Helvetica,sans-serif; font-size: 11px; color: #333333; width: 40px; border: solid 1px;” maxlength=”2″></td>
</tr>
I just want to make sure that the month/year is LATER than today’s date. If it is later, than go ahead and submit the form. If not, then alert the user that the date is invalid.
Here’s the HTML for the button that should call the function:
<a href=”#” onClick=”javascript:return Validator(this) && checkEmail(this) && Mod10(document.myform.CreditCard.value) && summary();”><img src=”images/order_summary.gif” width=”167″ height=”14″ alt=”printer friendly order summary” title=”printer friendly order summary” border=”0″></a>