adsense

Wednesday, June 1, 2022

Get All Elements in a HTML document

 We can use Jquery or javascript to get all DOM elements


Jquery

var elements= $('*');

Javascript

var elements= document.getElementsByTagName('*');

Cheers
Samitha

No comments:

Post a Comment