How to get Attributes of Div Element in JavaScript? - Tutorial Kart

[Pages:4]How to get Attributes of Div Element in JavaScript?

JavaScript ? Get Attributes of Div Element

To get attributes of a div using JavaScript, get reference to the div element, and read the attributes property of the div element.

In the following example, we have div with id "myDiv" , and we shall get the attributes of this div in JavaScript using attributes property.

Example

Get Attributes of Div using JavaScript ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download