jQuery Tip #6 – Creating a Custom jQuery Selector – Dan Wahlin’s WebLog
While most jQuery developers know about selector extensions, many aren’t aware that you can write your own custom selectors quite easily. Although custom selector extensions certainly aren’t required, they can be useful in situations where you find yourself writing the same type of code over and over and you want to simplify things as much as possible. For example, assume that you have the divs shown next defined in a page and you’d like to write code to display all hidden divs