I am using the following javascript function to access radio buttons. When the first radio button is clicked and the user clicks on submit... its goes to yahoo.com in a new window . But when I select the second radio button ... and click submit ... it stays at yahoo.com in the window instead of cnn.com. Please let me know how to correct this and to change to the appropriate url when we select teh radio button and click submit.
Thanks for ur help in advance,
Teky.
function setAction()
{
if (document.portalList.plan[0].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[1].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[2].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[3].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
}
// -->
</SCRIPT>
Thanks for ur help in advance,
Teky.
function setAction()
{
if (document.portalList.plan[0].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[1].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[2].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
else if (document.portalList.plan[3].checked == true)
{
document.portalList.action += '
document.portalList.submit();
}
}
// -->
</SCRIPT>