<html>
<head>
<title>HTML Frames Example - Content</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../formvalidator/chars/jsafv_messages.js"></script>
<script type="text/javascript" src="../formvalidator/chars/diactric_chars_utf8.js"></script>
<script type="text/javascript" src="../formvalidator/form.scripts.js"></script>
<script type="text/javascript">
var jsFormValidator = new FormValidator();
</script>
<script type='text/javascript' src='js/general.js'></script>
</head>
<body>
<h4>Validation of check boxes</h4>
<form name="frmTest" action="result.html" method="get" style="padding:5px;">
<table cellSpacing="0" cellPadding="0" border="0" valign="top">
<tbody>
<tr>
<td align="left">Agree #1 <FONT color="#ff0000">*</font> (rcAgree1):</td>
<td width="8"> </td>
<td align="left"><input type="checkbox" name="rcAgree" title="Agree #1" value="1"> <label class='note'>Required field. Type: Checkbox.</label></td>
<td width="8"> </td>
</tr>
<tr>
<td align="left">Agree #2 <FONT color="#ff0000">*</font> (rcAgree2):</td>
<td width="8"> </td>
<td align="left"><input type="checkbox" name="rcAgree2" title="Agree #2" value="1"> <label class='note'>Required field. Type: Checkbox.</label></td>
<td width="8"> </td>
</tr>
<tr>
<td align="left">Agree #3 (scAgree):</td>
<td width="8"> </td>
<td align="left"><input type="checkbox" name="scAgree" title="Agree #3" value="1"> <label class='note'>Optional field. Type: Checkbox.</label></td>
<td width="8"> </td>
</tr>
<tr><td colSpan="7"> </td></tr>
<tr>
<td align="middle" colSpan="7">
<input type="reset" value="Reset" name="butReset" />
<input onclick="return jsFormValidator.onSubmitCheck(document.forms['frmTest'])" type="submit" value="Submit" name="butRegister">
</td>
</tr>
<tr><td width="8" colspan="4" nowrap height="23px"> </td></tr>
</tbody>
</table>
</form>
<hr>
<h4>Code</h4>
<pre>
<INPUT type="text" name="rcAgree1" title="Agree #1" value="1" />
<INPUT type="text" name="rcAgree2" title="Agree #2" value="1" />
<INPUT type="text" name="scAgree" title="Agree #3" value="1" />
</pre>
</body>
</html> |