Thursday, June 30, 2011

What is OR operator in jQuery selector, Multiple selector


Comma (,)
Put comma between difference selectors, you can get combine result. OR operator.

$("div,span,p.myClass").css("border","3px solid red");

In jQuery, call Multiple selector

Reference:
http://api.jquery.com/multiple-selector/

No comments:

Post a Comment