Response title
This is preview!
jQuery( "[id^='radio_']" ).prop('checked', false );
Then I trigger checking certain boxes.
jQuery('#radio_2155').trigger('click');
jQuery('#radio_1775').trigger('click');
This works when I click on ".entry-title" All the checkboxes are unchecked, certain boxes are checked and the search is triggered.
jQuery('.entry-title').click(
function(event){
jQuery( "[id^='radio_']" ).prop('checked', false );
jQuery('#radio_2155').trigger('click');
jQuery('#radio_1775').trigger('click');
}
);
In this version, the alert works, the boxes are unchecked, and then certain boxes are checked, but they don't trigger the search.
<script type="text/javascript">
jQuery(function(){
alert('this works');
jQuery( "[id^='radio_']" ).prop('checked', false );
jQuery('#radio_2155').trigger('click');
jQuery('#radio_1775').trigger('click');
});
</script>
© 2013 jQuery Foundation
Sponsored by and others.