Jump to content

radio button


chico1st

Recommended Posts

[code=php:0]
<script type="text/javascript">
<!--
function check(name)
{
document.getElementById(name).checked=true
}

function uncheck(name)
{
document.getElementById(name).checked=false
}
//-->
</script>

<input type="radio" name="R1" value="V1" id="R1" /><BR>
<input type="text" name="text" onClick="check('R1');" />

[/code]

Thatll make it where if someone clicks in the text box it selects the radio button...
Link to comment
https://forums.phpfreaks.com/topic/17211-radio-button/#findComment-72877
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.