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

The following example demonstrates how to select all the elements using the tag name.

var p = $('p');     // Select all <p> elements
var a = $('a');     // Select all <a> elements