Ngày tải lên :
22/03/2014, 16:20
... hasClass()
ã
Events
bind(), trigger(), unbind(), live(), click()
ã
Effects
show(), fadeOut(), toggle(), animate()
jQuery Methods
We needed a hero to get
these guys in line
Give $() a selector
$(“#myId”)
$(“.myClass”)
...
<p>paragraphs</p>
</div>
</body>
</html>
Moving Elements Examples
.appendTo(“#foo”);
jQuery Methods
ã
Moving Elements:
append(), appendTo(), before(), after(),
ã
Attributes
css(), attr(), html(), val(), addClass()
ã
Traversing
find(), ... Methods
ã
Moving Elements:
append(), appendTo(), before(), after(),
ã
Attributes
css(), attr(), html(), val(), addClass()
Selector Examples
$(“#content”) get element with id content
$(“li:first”) get...