Skip to content

Instantly share code, notes, and snippets.

@chriswagoner
Created May 14, 2019 19:39
Show Gist options
  • Save chriswagoner/f4b1d1dafc51cf987206bec9282058be to your computer and use it in GitHub Desktop.
Save chriswagoner/f4b1d1dafc51cf987206bec9282058be to your computer and use it in GitHub Desktop.
Add a class to the active checkbox in Toolset after the AJAX filter runs.
jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function active_label(){
jQuery('input[checked=checked]').parent().addClass('active');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment