The is() method is more powerful than you think. Here are a few examples: