+ 1

So "element" is sorta like "this"?

2nd Jan 2017, 5:02 PM
Texx Smith
Texx Smith - avatar
2 Antworten
+ 1
Element when trying to manipulate the DOM would be more like H1, H2, div, span, things of that nature. Here's an example using jQuery. $("button").addClass("animate hinge"); In jQuery I'm selecting all of the button elements and giving them two classes, one class named animated, the other named hinge. Then from here you can start to target specific containers with the class you're looking for or even ID's.
9th Jan 2017, 3:10 PM
Poohbie
Poohbie - avatar
0
I meant the keyword "element" as used in this lesson...
21st Jan 2017, 9:32 PM
Texx Smith
Texx Smith - avatar