1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
<script type="text/javascript">
//<![CDATA[
function Check_WI (caseCoche, caseACocher)
{
if (caseCoche.checked)
{caseACocher.checked = 'checked'}
else
{caseACocher.checked = ''}
}
//]]>
</script>
</head>
<body>
<p id="rubriques_consult">
<form name="test" id="test" method="post" action="">
<label>cases à cocher</label>
<br /><br />
<input type="checkbox" name="cellule1" value="case1" onclick="Check_WI(this, this.form.cellule5)"/>case1<br/>
<input type="checkbox" name="cellule2" value="case2" onclick="Check_WI(this, this.form.cellule3)"/>case2 <br />
<input type="checkbox" name="cellule3" value="case3" onclick="Check_WI(this, this.form.cellule4)"/>case3 <br />
<input type="checkbox" name="cellule4" value="case4" onclick="Check_WI(this, this.form.cellule3)"/>case4 <br />
<input type="checkbox" name="cellule5" value="case5" onclick="Check_WI(this, this.form.cellule1)"/>case5 <br />
</form>
</p>
</body>
</html> |