+ 1
So "element" is sorta like "this"?
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.
0
I meant the keyword "element" as used in this lesson...