Posted By

crypticsoft on 02/18/11


Tagged

filter custom


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

crutzdesigns


:containsNoCase custom filter


 / Published in: jQuery
 

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

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

  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. };

Report this snippet  

You need to login to post a comment.