All I am trying to do is onclick of checkbox, append its value to the URL and redirect..How do I do this??
$(document).ready(function() {
var url = 'http://mysite.com/results.aspx';
$('.LocType').click (function ()
{
var thisCheck = $(this);
if (thischeck.is (':checked'))
{
// Do stuff
window.location.href = "http://www.yahoo.com";
}
});
});
<div class="MyOptions">
Hospitals<input class="LocType" type="checkbox" value="Hospital"/>  
Offices<input class="LocType" type="checkbox" value="Office"/>  
Facilities<input class="LocType" type="checkbox" value="Facility"/>
</div>