Tools used for this tutorial
jQuery 3.7.1
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');