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');