Effect
|
$(“p”).hide()
|
|
$(“#test”).hide()
|
||
$(“.test“).hide()
|
||
$(this).hide()
|
||
Events
|
click()
|
|
dblclick()
|
||
mouseenter()
|
||
mouseleave()
|
||
mousedown()
|
||
mouseup()
|
||
hover()
|
||
focus() and blur()
|
||
Effect
|
Hide/Show
|
hide()
|
hide() and show()
|
||
toggle()
|
||
hide()
|
||
Fade
|
fadeIn()
|
|
fadeOut()
|
||
fadeToggle()
|
||
fadeTo()
|
||
Slide
|
slideDown()
|
|
slideUp()
|
||
slideToggle()
|
||
Animate
|
animate()
|
|
animate() - manipulate multiple CSS properties
|
||
animate() - using relative values
|
||
animate() - using pre-defined values
|
||
animate() - several calls after each other
|
||
Stop Animations
|
stop() sliding
|
|
stop() animation (with parameters)
|
||
HTML
|
HTML Get Content and Attributes
|
text() and html() - Get content
|
val() - Get content
|
||
attr() - Get attribute value
|
||
HTML Set Content and Attributes
|
text(), html(), and val() - Set content
|
|
text() and html() - Set content with a callback function
|
||
attr() - Set attribute value
|
||
attr() - Set multiple attribute values
|
||
attr() - Set attribute value with a callback function
|
||
HTML Add Elements/
Content
|
append()
|
|
prepend()
|
||
append() - Insert several new elements
|
||
after() and before()
|
||
after() - Insert several new elements
|
||
HTML Remove Elements/
Content
|
remove()
|
|
remove() - with a parameter
|
||
empty()
|
||
Get and Set CSS Classes
|
addClass()
|
|
addClass() - Multiple classes
|
||
removeClass()
|
||
toggleClass()
|
||
css() Method
|
css() - return CSS property
|
|
css() - set CSS property
|
||
css() - set CSS properties
|
||
Dimensions
|
return width() and height()
|
|
return innerWidth() and innerHeight()
|
||
return outerWidth() and outerHeight()
|
||
return outerWidth(true) and outerHeight(true)
|
||
return width() and height() of document and window
|
||
set width() and height()
|
||
Traversing
|
Traversing Ancestors
|
parent()
|
parents()
|
||
parentsUntil()
|
||
Traversing Descendants
|
children()
|
|
find()
|
||
Traversing Siblings
|
siblings()
|
|
next()
|
||
nextAll()
|
||
nextUntil()
|
||
Traversing Filtering
|
first()
|
|
last()
|
||
eq()
|
||
filter()
|
||
not()
|
||
Filters
|
Filter table
|
|
Filter list
|
||
anything
|
traversing
jQuery 참고
'jQuery > 기본' 카테고리의 다른 글
4. 객체 조작 - 예제 (0) | 2022.06.09 |
---|---|
4. 객체 조작 - 객체 편집 메서드 (0) | 2022.06.09 |
4. 객체조작 - 수치조작 메소드 (0) | 2022.06.08 |
4. 객체 조작 - 속성 조작 메소드 (0) | 2022.06.08 |
선택자 (0) | 2022.05.31 |
댓글