Skip to content

Instantly share code, notes, and snippets.

@raideus
Last active December 27, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raideus/7238454 to your computer and use it in GitHub Desktop.
Save raideus/7238454 to your computer and use it in GitHub Desktop.
Corresponding JS for gs_selected_criteria(). Allows the user to de-select current terms.
$('.selected-term').click(function() {
var rel = $(this).attr('rel');
$('input[value="'+rel+'"]').attr('checked',false);
$(this).remove();
$('#wp-advanced-search').submit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment