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
| <script language="javascript" type="text/javascript">
function check(method)
{
var checkboxes = document.getElementsByName("subscriptions");
for(i=0; i < checkboxes.length; i++)
{
checkboxes[i].checked = method;
}
}
</script>
<form method="post" action="">
<fieldset>
<b>Please choose the magazines you would like to subscribe to:</b><br/><br/>
<input type="checkbox" name="subscriptions" value="1"/> Sports Illustrated<br/>
<input type="checkbox" name="subscriptions" value="2"/> Bicycling<br/>
<input type="checkbox" name="subscriptions" value="3"/> Time<br/>
<input type="checkbox" name="subscriptions" value="4"/> Newsweek<br/>
<input type="checkbox" name="subscriptions" value="5"/> National Geographic<br/>
</fieldset>
<br/>
<fieldset>
<input type="submit" value="Subscribe" /> Select: <a href="#" onclick="check(1); return false;">All</a>, <a href="#" onclick="check(0); return false;">None</a>
</fieldset>
</form> |
Partager