Hi,
Below is my code snippet having only one form,
<form>
<input type ="radio" name="action" value="xyz" checked>xyz
<input type ="radio" name="action" value="zyx">zyx
<input type ="radio" name="action" value="yxz">yxz
</form>
Through Javascript when i change action url
document.forms[0].action = "some.php";
document.forms[0].submit();
The radio button action ( watch the name of radio button) gets
changed. I have no choice to change the name of the radio button.
Is there any workaround for this?
Thanks!
Below is my code snippet having only one form,
<form>
<input type ="radio" name="action" value="xyz" checked>xyz
<input type ="radio" name="action" value="zyx">zyx
<input type ="radio" name="action" value="yxz">yxz
</form>
Through Javascript when i change action url
document.forms[0].action = "some.php";
document.forms[0].submit();
The radio button action ( watch the name of radio button) gets
changed. I have no choice to change the name of the radio button.
Is there any workaround for this?
Thanks!
Comment