dropshado.ws

Front-end development minutiæ

by David DeSandro

Archive
RSS feed
Twitter
original Tumblr version

jQuery .filter() - more than just selectors

Via Hugo Dias’s comment on an Isotope filtering issue, turns out you can pass more than just DOM selector strings into jQuery .filter(). Using a function is pretty useful if you need additional logic to run over for each item in the jQuery collection.

22 Mar 2012
  • jQuery
Page of
  • desandro.com
  • @desandro
  • github.com/desandro
  • desandro’s JS Fiddles