Javascript 选择并提交单选按钮时的Url更改
我正在尝试获取主题中描述的内容,当单击submit或order now按钮时,它将根据单选按钮选择转到URL。但下面的表单附加了?rr=,这会导致我的URL出现问题 表格为:Javascript 选择并提交单选按钮时的Url更改,javascript,jquery,html,Javascript,Jquery,Html,我正在尝试获取主题中描述的内容,当单击submit或order now按钮时,它将根据单选按钮选择转到URL。但下面的表单附加了?rr=,这会导致我的URL出现问题 表格为: <form id="account2"> <p> <input type="radio" id="r20" name="rr" onclick="document.getElementById('account2').action='http://seomagz
<form id="account2">
<p>
<input type="radio" id="r20" name="rr" onclick="document.getElementById('account2').action='http://seomagz.com/';"/>
<label for="r20" class="rating"><span1></span1><span class="one_month">36 mo</span> <span class="one_month2">Rs.530</span><span class="one_month">/mo</span> </label>
<p>
<input type="radio" id="r21" name="rr" onclick="document.getElementById('account2').action='http://www.google.com/';"/>
<label for="r21"><span1></span1><span class="one_month">24 mo</span> <span class="one_month2">Rs.533</span><span class="one_month">/mo</span> </label>
<p>
<input type="radio" id="r22" name="rr" onclick="document.getElementById('account2').action='http://www.google.com/';"/>
<label for="r22"><span1></span1><span class="one_month">12 mo</span> <span class="one_month2">Rs.541</span><span class="one_month">/mo</span> </label>
<p>
<input type="radio" id="r23" name="rr" onclick="document.getElementById('account2').action='http://www.googlefg.com/';" />
<label for="r23"><span1></span1><span class="one_month">3 mo</span> <span class="one_month2">Rs.549</span><span class="one_month">/mo</span> </label>
</div>
<button type="submit" class="ordernow1" style="margin-top:63px;"><p>Order Now</p></button></form>
36个月530卢比/月
24个月533卢比/月
12个月541卢比/月
3个月549卢比/月
现在点菜
此处无法复制
尝试使用action='post'
这是小提琴
http://jsfiddle.net/hAGPr/
您还应该关闭您的
标签,进行良好的练习谢谢,您也很棒。
<form id="account2" method="post">