Computer Magic Logo
Tag selector

Thursday, January 12, 2017

Published by Aristotelis Pitaridis

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.