|
All Scripts JavaScripts ASP Scripts Other Scripts
Change
value of the RadioButtons by clicking on the button.
Do you want to see how to change
value for checkboxes? Just follow
the link.
Would you like to know how to
select a few textfields, or checkboxes or radiobuttons?
Just follow the above links.
|
|
|
HEAD Section:
<script language="JavaScript">
function Fill() {
form1.rb1.checked=!form1.rb1.checked;
form1.rb2.checked=!form1.rb2.checked;
form1.rb3.checked=!form1.rb3.checked;
}
</script>
|
|
BODY Section:
<form name="form1" method="post" action="">
<input type="radio" name="rb1" value="rb1">
<input type="radio" name="rb2" value="rb2">
<input type="radio" name="rb3" value="rb3">
<input type="button" name="Button" value="Fill" onClick="Fill()">
</form>
|
|