Answers for "get attribute()"

2

javascript element read attribute

document.getElementById('id1').getAttribute('attribute');
Posted by: Guest on July-15-2020
2

js getattribute

const link = document.querySelector('a');

console.log(link.getAttribute('href'));
Posted by: Guest on July-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language