I changed the code to have the validate where the form tag is. Now it will not let me submit not matter what it gives me the message and wont submit. I have attached all my form code.
Code:
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>" onSubmit="return validate()">
<table width="700" border="1" align="center">
<tr>
<td bgcolor="009999"><div align="center"><span class="style32">Will the employee have enough
leave to cover the requests?</span> Yes
<input name="Yesaccurate" type="checkbox" id="Yesaccurate" value="Yes is accruate" />
No
<input name="Noaccurate" type="checkbox" id="Noaccurate" onclick="alert("Please list what leave is not approved below")" value="No" />
</div>
<label>
<div align="center"></div>
</label></td>
</tr>
<tr>
<td bgcolor="009999"><div align="center"><span class="style39"><strong>All leave can be approved
with the following exceptions: </strong></span>
<textarea name="Reason1" cols="80" id="Reason1">None</textarea>
</div></td>
</tr>
<tr>
<td bgcolor="009999"><div align="center">Manager's Verification* Signature
</div>
<label>
<div align="center">
<input name="Sign" type="text" class="style25" id="Sign" value="Enter Your ID Number" />
</div>
</label></td>
</tr>
Code:
<input type="Submit" value="Submit"/>
Bookmarks