Gagan22,
<script>
function setAction(r, url){
r.form.action = url;
r.blur();
}
</script>
<form name="myForm" action="myPage_1.html" method="post">
<input type="radio" id="a1" name="a" onclick="setAction(this, 'myPage_1.html')" checked="checked"><label for="a1">Page 1</label>
<input type="radio" id="a2" name="a" onclick="setAction(this, 'myPage_2.html')"><label for="a2">Page 2</label>
<!-- rest of your form ...... -->
</form>
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372