Dom Manipulation 1 Flashcards
1
Q
What is the primary advantage to storing your selected elements in a variable?
A
you just have to serch for the element once
2
Q
Why might you need JavaScript to modify the DOM after the page loads?
A
user interaction
3
Q
How can you better prepare when writing HTML for DOM manipulation in your JavaScript code?
A
write clear class, id, attrubute names