DOM - manipulation Flashcards

1
Q

What is the className property of element objects?

A

property of the Element interface gets & sets the value of the class attribute of the specified element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you update the CSS class attribute of an element using JavaScript?

A

.className = write in class Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the textContent property of element objects?

A

property of the Node interface represents the text content of the node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you update the text within an element using JavaScript?

A

using node.textContent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly