mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>Radio Button Test 1 (Init)</TITLE>
|
|
<SCRIPT SRC="radio.js"></SCRIPT>
|
|
</HEAD>
|
|
<BODY>
|
|
<FORM NAME=mainform>
|
|
<INPUT TYPE=reset> <INPUT TYPE=submit>
|
|
<FIELDSET>
|
|
<LEGEND>None Selected</LEGEND>
|
|
<INPUT TYPE=radio NAME=a VALUE=1>
|
|
<INPUT TYPE=radio NAME=a VALUE=2>
|
|
<INPUT TYPE=radio NAME=a VALUE=3>
|
|
<BR>
|
|
<INPUT TYPE=button VALUE="Show all checked" onClick="alert(getRadioVal(document.mainform.a))">
|
|
<INPUT TYPE=button VALUE="Set .checked on #3" onClick="document.mainform.a[2].checked = true">
|
|
<INPUT TYPE=button VALUE="Set all .checked" onClick="setAllChecked(document.mainform.a, true)">
|
|
</FIELDSET>
|
|
<FIELDSET>
|
|
<LEGEND>One Selected</LEGEND>
|
|
<INPUT TYPE=radio NAME=b VALUE=1>
|
|
<INPUT TYPE=radio CHECKED NAME=b VALUE=2>
|
|
<INPUT TYPE=radio NAME=b VALUE=3>
|
|
<BR>
|
|
<INPUT TYPE=button VALUE="Show all checked" onClick="alert(getRadioVal(document.mainform.b))">
|
|
<INPUT TYPE=button VALUE="Set .checked on #3" onClick="document.mainform.b[2].checked = true">
|
|
<INPUT TYPE=button VALUE="Set all .checked" onClick="setAllChecked(document.mainform.b, true)">
|
|
</FIELDSET>
|
|
<FIELDSET>
|
|
<LEGEND>All Selected</LEGEND>
|
|
<INPUT TYPE=radio CHECKED NAME=c VALUE=1>
|
|
<INPUT TYPE=radio CHECKED NAME=c VALUE=2>
|
|
<INPUT TYPE=radio NAME=c VALUE=3 CHECKED>
|
|
<BR>
|
|
<INPUT TYPE=button VALUE="Show all checked" onClick="alert(getRadioVal(document.mainform.c))">
|
|
<INPUT TYPE=button VALUE="Set .checked on #3" onClick="document.mainform.c[2].checked = true">
|
|
<INPUT TYPE=button VALUE="Set all .checked" onClick="setAllChecked(document.mainform.c, true)">
|
|
</FIELDSET>
|
|
</FORM>
|
|
</BODY>
|
|
</HTML>
|