Web Development with jQuery®

(Elliott) #1

(^508) ❘ APPENDIX C SELECTING, TRAVERSING, AND FILTERING
bapp03.indd 02/17/2015 Page 508
parents([selector]) Selects all ancestor elements; the selector
argument is optional.
jQuery
parentsUntil([selector]
[, filter])
Matches parent or ancestor elements up to
but not including the element that matches
the selector.
If the optional filter argument is specifi ed,
the matched elements are further fi ltered via
the selector that you provide in the filter
argument.
jQuery
parentsUntil([element][,
filter])
Matches parent or ancestor elements up to
but not including the element that matches
the provided DOM element object reference.
If the optional filter argument is specifi ed,
the matched elements are further fi ltered via
the selector that you provide in the filter
argument.
jQuery
prev([selector]) Selects the previous sibling element; the
selector argument is optional.
jQuery
prevAll([selector]) Selects all preceding sibling elements; the
selector argument is optional.
jQuery
prevUntil([selector][,
filter])
Selects all preceding sibling elements up to
but not including the element matched by the
selector.
If the optional filter argument is specifi ed,
the matched elements are further fi ltered
against the selector you provide to the
filter argument.
jQuery
prevUntil([element][,
filter])
Selects all preceding sibling elements up to
but not including the element object refer-
ence provided.
If the optional filter argument is specifi ed,
the matched elements are further fi ltered
against the selector you provide to the
filter argument.
jQuery
siblings([selector]) Selects all sibling elements; the selector
argument is optional.
jQuery
slice(start[, end]) Selects a subset of the selection, where each
index is a number representing the element’s
position in the selection offset from zero.
jQuery
(continued)
http://www.it-ebooks.info

Free download pdf