Created
July 31, 2015 08:06
-
-
Save devjosh12/4641cc8cb2b61a40c30f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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