JS: DOM Methods
Here are the essential Document Object Model methods. Learn these and you will know almost all of practical DOM.
Get node
- JS DOM: Get Element by ID, Name, Class etc
- JS DOM: Get Current Script Element
- JS DOM: Get Parent, Child, Sibling
Loop thru nodes
Change attributes
- JS DOM: Element Attribute Methods
- JS DOM: Class Attribute (get add remove toggle)
- JS DOM: Change HTML element style attribute