Skip to content

Instantly share code, notes, and snippets.

@valdiney
Created March 30, 2016 21:15
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 valdiney/e473e6c91c032a23c4b61129d1fbbf4f to your computer and use it in GitHub Desktop.
Save valdiney/e473e6c91c032a23c4b61129d1fbbf4f to your computer and use it in GitHub Desktop.
<script>
$(document).ready(function() {
$('.mais_ap').click(function() {
$('.mais_ap_div').toggle('slow');
return false;
});
$("#txtBusca").keyup(function() {
var text = $(this).val();
$(".ul_ap_all li").css("display", "block");
$(".ul_ap_all li").each(function() {
if ($(this).text().toUpperCase().indexOf(text) < 0) {
$(this).css("display", "none");
}
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment