Skip to content

Instantly share code, notes, and snippets.

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 devjosh12/4641cc8cb2b61a40c30f to your computer and use it in GitHub Desktop.
Save devjosh12/4641cc8cb2b61a40c30f to your computer and use it in GitHub Desktop.
<script>
jQuery(".attr_filter_input").keyup(function(){
this_input = jQuery(this);
this_input.parents("ol").find("li").each(function(){
this_li = jQuery(this);
if(this_li.index() != 0) {
this_input_value = this_input.val().toLowerCase();
this_li_label_text = this_li.find("label").text().toLowerCase();
if(this_li_label_text.indexOf(this_input_value) < 0)
this_li.hide();
else
this_li.show();
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment