Skip to content
markdown guide

You can do it with pure JavaScript too, a lot of the older jQuery syntax has made it into mainstream JavaScript now 🙂

document.querySelector('div.class').setAttribute('id', 'yourIdName');
Classic DEV Post from Jul 30 '19

PublishTo.Dev: Scheduling article publishing on

AjayMalhotra profile image
Experienced Full Stack Developer, blogger and youtuber. Blog: Youtube: