JSFiddle:https://jsfiddle.net/apamvz1r/1/
我有以下代码,我希望消除访问者在搜索之前点击单选按钮的需要......这可能吗?我想完全消除这个领域或隐藏它。
<input type="radio" name="RProducts" onclick="frmSearch.Products.value='BB'">
如果你没有点击收音机输入,它就无法正常工作,即使我预先选择它,仍然需要直接点击它。有办法解决这个问题吗?
<form action="http://search1.bestbenefits.com/provsearch.asp" method="post" name="frmSearch" id="frmSearch" target="_blank" onSubmit="return CheckParams()">
<input type="hidden" name="Products" value="">
<input type="hidden" name="Title" value="24-7_MedPlan-20140416">
<input type="radio" name="RProducts" onclick="frmSearch.Products.value='BB'">Search Providers
<br />Zip Code: <input type="text" size="9" name="Zip" maxlength="5"><br />
<input type="submit" value="Search for Providers">
</form>
答案 0 :(得分:0)
这对我有用:
<form action="http://search1.bestbenefits.com/provsearch.asp" method="post" name="frmSearch" id="frmSearch" target="_blank" onSubmit="return CheckParams()">
<input type="hidden" name="Products" value="">
<input type="hidden" name="Title" value="24-7_MedPlan-20140416">
<input checked="checked" type="radio" name="RProducts" onclick="frmSearch.Products.value='BB'">Search Providers
<br />Zip Code: <input type="text" size="9" name="Zip" maxlength="5"><br />
<input type="submit" value="Search for Providers">
</form>