Javascript and radio button with redirect
562548Feb 27 2007 — edited Feb 27 2007Hi all
The trouble I am having is something like this :
I am having a radiogroup with redirect on my page. The name of this is ccddatasource.
It has got two members with values 'new' and 'current'.
Following is the javascript I have in my code :
<script language="JavaScript1.1" type="text/javascript">
<!--
function message()
{
alert(document.getElementById('CCDDATASOURCE').value)
var change = 'new';
if (document.getElementById('CCDDATASOURCE').value == 'new' )
{
alert('Please select the CCD file to be uploaded');
}
else
{
doSubmit('UPLOAD');
}
}
//-->
</script>
On calling this script, the alert box displays the word 'undefined' irespective of the selection I made for this radio button. How do I get the correct value for this radiogroup with redirect?
Thanks
-Shantanu