This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Showing specific results on show all option/Keep results even when not active

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Showing specific results on show all option/Keep results even when not active Reply To: Showing specific results on show all option/Keep results even when not active

#21588
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Tom,

I’m afraid this is no option for that, but it might be possible via using a custom script. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

add_action('wp_footer', 'asp_radio_reset_to_click');
function asp_radio_reset_to_click() {
  ?>
  <script>
  jQuery(function($){
    $('.asp_w input[type=radio]').on('click', function(){
      $(this).closest('form').find('input[type=radio]').prop('checked', false);
      $(this).prop('checked', 'true'); 
    });             
  });
  </script>
  <?php
}

This should very likely do the trick.