:containsNoCase custom filter


/ Published in: jQuery
Save to your folder(s)

credit: http://www.west-wind.com/weblog/posts/519980.aspx


Copy this code and paste it in your HTML
  1. $.expr[":"].containsNoCase = function(el, i, m) {
  2.  
  3. var search = m[3];
  4.  
  5. if (!search) return false;
  6.  
  7. return eval("/" + search + "/i").test($(el).text());
  8.  
  9. };

URL: http://isotope.metafizzy.co/demos/infinite-scroll.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.