JavaScript
Article

jQuery CSS Selectors

By Sam Deering

Using CSS selectors in jQuery means you can easily change the styles of HTML elements on your web page dynamically!

The beauty of these special selectors is that a simple jQuery CSS selector line can find and change CSS properties for multiple HTML elements all at the same time! Magic.

Here is how you do it:

$("p").css("background-color","yellow");

Try it for yourself!

Source: http://www.w3schools.com/jquery/jquery_selectors.asp

  • http://frostwiredownload.org frosTwire download

    thanks

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.