javascript-dom-manipulation-1 Flashcards
1
Q
What is the primary advantage to storing your selected elements in a variable?
A
Reusing
2
Q
Why might you need JavaScript to modify the DOM after the page loads?
A
Allowing user to interact with the site. Without dom manipulation you have a static read only site.
3
Q
Why might you need JavaScript to modify the DOM after the page loads?
A
set id tags to allow yourself to target and manipulate those elements.