Hi, i seem to be having difficulties with the following and was wondering if some smart eyes can help me with it. Thanks
<script type="text/javascript"><!--
function getObjRef(id) {
if(document.getElementById) { return document.getElementById(id); }
if(document.all) { return document.all[id]; }
}
function display1(selected) { //selected is the radio input option
var el = getObjRef('rad1'); //gets the object reference for the element
if(val == '1aa1') { //if val is set to '1aa1' show the textbox
el.style.display='block';
} else if (val == '1aa2') {
el.style.display='block';
else { //else hide it or keep it hidden.
el.style.display='none';
}
}
// -->
</script>
//////html//////////
<input type="radio" id="rad1" name="r1" value="1aa1" onClick="javascript:display1();">Canada
<input type="radio" id="rad1" name="r1" value="1aa2" onClick="javascript:display1();">USA
///////other info/////
form name="frmRecruitmentList
<script type="text/javascript"><!--
function getObjRef(id) {
if(document.getElementById) { return document.getElementById(id); }
if(document.all) { return document.all[id]; }
}
function display1(selected) { //selected is the radio input option
var el = getObjRef('rad1'); //gets the object reference for the element
if(val == '1aa1') { //if val is set to '1aa1' show the textbox
el.style.display='block';
} else if (val == '1aa2') {
el.style.display='block';
else { //else hide it or keep it hidden.
el.style.display='none';
}
}
// -->
</script>
//////html//////////
<input type="radio" id="rad1" name="r1" value="1aa1" onClick="javascript:display1();">Canada
<input type="radio" id="rad1" name="r1" value="1aa2" onClick="javascript:display1();">USA
///////other info/////
form name="frmRecruitmentList