0
我有这个代码,其中有几个单选按钮和一个输入框。我已经捕获了输入框的值,并将其作为按钮的按钮单击按钮添加到URL中。但我也需要捕获所选无线电的值,并将其作为查询字符串传递给网址。它应该看起来像:http://mysite.com/events/SitePages/test1.aspx?kwd=InputBoxvalue&type=RadioValue捕获无线电数值并追加到查询字符串URL
我该怎么做?
All<input name="EventRadio" type="radio" value="All"/>
Events<input name="EventRadio" type="radio" value="Events"/>
Classes<input name="EventRadio" type="radio" value="Classes"/>
<input name="keyword" type="text" id="EventSearchBox"/>
<input name="SearchButton" type="button" value="Search"
onClick="location.href='http://mysite.com/events/SitePages/test1.aspx?kwd='+ document.getElementById('EventSearchBox').value; return false;"/><br/><br/>
是jQuery的标签真的需要? – 2011-12-30 18:36:58