Revision: 35222
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 4, 2010 12:54 by zayyarphone
Initial Code
$("#filter").keyup(function () { var filter = $(this).val(), count = 0; $(".filtered:first li").each(function () { if ($(this).text().search(new RegExp(filter, "i")) < 0) { $(this).addClass("hidden"); } else { $(this).removeClass("hidden"); count++; } }); $("#filter-count").text(count); });
Initial URL
http://www.mattryall.net/blog/2008/07/jquery-filter-demo
Initial Description
Initial Title
jquery simple regexp filter
Initial Tags
Initial Language
jQuery