Multiple Selectors $("selector1, selector2,..., selectorN")

$("selector1, selector2,..., selectorN")

e.g. $("div, p, .className")

$("selector1, selector2,..., selectorN") selects all elements matching any of the defined selectors.

For example, $("#someID, [name='someName'], .someClass") will find elements that have id='someID', attribute name='someName' or class='someClass' .
<div id='someID'>div</div>
<p>p1</p>
<span name='someName'>span</span>
<p class='someClass'>p2</p>
jQuery selector $("selector1, selector2,..., selectorN")