JavaScript Radio Button Text Choice

 

This script will show you how to use click able text within a "radio" tag.

If you decide you want to use or alter the script to suit your needs, please give your support and leave a link to this site, thanks.

 

 

Example

Option 1
Option 2
Option 3

 

Script Source

 

<script language="JavaScript">
<!--
function click(choice) {
document.radio_text.radio_txt[choice].checked = true;
}
//-->
</script>
<form name="radio_text">
<input type="radio" name="radio_txt" checked="checked"/> <A HREF="javascript:click(0)">Option 1</A><BR>
<input type="radio" name="radio_txt"/> <A HREF="javascript:click(1)">Option 2</A><BR>
<input type="radio" name="radio_txt"/> <A HREF="javascript:click(2)">Option 3</A>
</form>

 

Please let me know if this script was helpful to you.

[rating]