TOP
EN EL
Selectors - Multiple tags selector
15 September 2024 Published by Aristotelis Pitaridis
Tools used for this tutorial
jQuery 3.7.1
SHARE

We can select multiple tags using the “,” character. The following example demonstrates how to select all paragraphs, anchors, and span elements.

var elements = $('p, a, span');