CHAPTER 1
■
INTRODUCING JQUERY
18
documentation by a member of the development community. For more on this filter, see
http://api.jquery.com/contains-selector
.
Selecting Elements That Contain a Certain Element
If you need to select only elements that contain another element, you would use the
:has() filter. This
works similarly to
:contains(), except it accepts an element name instead of a string of text:
Do'stlaringiz bilan baham: