我想实现这个使用jQuery,而不是内联,但它不工作,在线工作正常。另外一个原因,我想使用jQuery是,如果用户选择多于一个复选框,该URL应该与任何已经存在+ OR“第二复选框值”这样的附加: 的“http:// mysite的/网站/开发/非接触我们/页/ LocationSearchTestPage.aspx?S = bcs_locations & K =办公室或医院” 的空间和盈方以下或罚款.. 我怎样才能做到这一点?有人可以帮我吗?的onclick复选框追加复选框值到URL
Offices<input name="LocType" type="checkbox"
value="Office" onclick="window.location='http://mysite/sites/dev/contact-us/Pages/LocationSearchTestPage.aspx?s=bcs_locations&k=Office'; return true;">  
Hospitals<input name="LocType" type="checkbox"
value="Hospital" onclick="window.location='http://mysite/sites/dev/contact-us/Pages/LocationSearchTestPage.aspx?s=bcs_locations&k=Hospital'; return true;">  
Facilities<input name="LocType" type="checkbox"
value="Facility" onclick="window.location='http://mysite/sites/dev/contact-us/Pages/LocationSearchTestPage.aspx?s=bcs_locations&k=Facility'; return true;">
你已经发布[或多或少相同的问题(http://stackoverflow.com/questions/9437952/onselect-checkbox-add-selected-value-to-the-url-as-querystring),和有人煞费苦心地回答它,然后有两个人已经回答了[你的其他问题](http://stackoverflow.com/questions/9439587/onclick-checkbox-event)。 – nnnnnn 2012-02-25 05:17:28