I am trying to hide or show a region depending on the value of a radio button.
Radio button (P60_XX) has 2 possible values (1 and 2) and a default value of 2. My region has a static id of GD.
My onclick event works and the region displays or does not display, as it should, but I cannot get my onload to work, ie the region should not be displayed, as the default value is 2.
In my page header I have
<script type="text/javascript">
function GermDist(pThis) {
if(pThis) {
var lval= $v(pThis);
if (lval == 2) {
$x_Hide('GD');
} else if (lval == 1) {
$x_Show('GD');
}}}
</script>
My onclick on P60_XX is
onclick="GermDist(this);" and works
My onload is
onLoad="GermDist('P60_XX');" and does not work
Can anyone point out where I am going wrong please
Gus