Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Buttons triggering events. How?????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to know how I can use radio buttons to trigger events or in this case call up functions with out the use of an command button. But instead based on radio selection.

Thanks in advance

 
<HTML>
<HEAD>
<TITLE>Jay G Iyer</TITLE>
</HEAD>
<BODY>

<P>
<INPUT name=radio1 type=radio onclick=&quot;fnClick()&quot; value=&quot;1&quot;>
<INPUT name=radio1 type=radio onclick=&quot;fnClick()&quot; value=&quot;2&quot;>
</P>

</BODY>
</HTML>
<script>
function fnClick()
{
alert(document.all(&quot;radio1&quot;)(0).checked);
}
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top