In some cases you may need a shortcut to collect elements for which jQuery doesn’t provide a specific filter. This is exactly where custom filters come into play.
In this article, extracted from my book Instant jQuery Selectors, you’ll learn how to build a custom filter in jQuery. Please note that, to be a complete post, it has some minor adjustment compared to the original recipe titled Custom filters (Become an expert).