我正在尝试获取主题中描述的内容,当单击提交或立即订购按钮时,它应根据单选按钮选择转到URL。但是下面的这个表单附加了?rr =在我的网址上创建问题。
表格是:
<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>
答案 0 :(得分:0)
此处无法复制
尝试使用action='post'
这里是小提琴
http://jsfiddle.net/hAGPr/
答案 1 :(得分:0)
<form id="account2" method="post">
您还应该关闭<p>
标签,做好练习