O'Reilly logo

jQuery and jQuery UI: Visual QuickStart Guide by Jay Blanchard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Harnessing Advanced Selectors

In each of the exercises to this point, you’ve mostly used jQuery’s basic selectors to identify elements you’ve wanted to work with. The basic selectors have worked well and will continue to serve most of your needs.

You’ve also used one of the more advanced selectors, an attribute selector. These types of selectors identify the element and then a particular attribute that the element has, such as $('a[href="foo.html"]). But there’s a lot more you can do with attribute selectors, such as selecting attributes that start or end with a particular value or contain a certain word. Many of the attribute selectors offer regular expression–like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required