• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

onclick event handler for radio button

Portend

Member
made a simple script to show a link if condition on radio button is true. The problem is it is not working. any suggestions?
--------------------
<head>
<script>
var stringshow = &quot;&quot;

function showlink()
{
if (document.PForm.Scheduler[0].checked )
stringshow = &quot;jsdfhsk&quot;
}
</script>
</head>
<body onload=&quot;showlink()&quot;>

<form action=&quot;test.html&quot; name=&quot;PForm&quot;>
<input type=&quot;radio&quot; name=&quot;Scheduler&quot; value=&quot;yes&quot; ><br>

<input type=&quot;radio&quot; name=&quot;Scheduler&quot; value=&quot;no&quot; checked>
</form><br>

<script>document.write(stringshow)</script>
</body>
-----------------------------
thanks
 
Back
Top