Is there another way to get an DOM element’s ID?

element.getAttribute('id')

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *