Your SlideShare is downloading. ×
0
01 $([attribute|="value"])Description: Selects elements that have the specified attribute with a valueeither equal to a gi...
02$([attribute^="value"])Description: Selects elements that have the specified attribute with a valuebeginning exactly wit...
03$([attribute!="value"])Description: Select elements that either dont have the specified attribute, ordo have the specifi...
04$(:visible)Description: Selects all elements that are visible.Example$(:checked)Description: Matches all elements that a...
05$(:eq(index))Description: Select the element at index n within the matched set.Example$(:nth-child(index/even/odd/equati...
06$(:even)Description: Selects even elements, zero-indexed.Example$(:odd)Description: Selects odd elements, zero-indexed. ...
07$(:first-child)Description: Selects all elements that are the first child of their parent.Example$(:last-child)Descripti...
08$(:first)Description: Selects the first matched element..Example$(:last)Description: Selects the lastmatched element..Ex...
09$(:gt(index))Description: Select all elements at an index greater than index within thematched set.Example$(:lt(index))D...
10$(:not(selector))Description: Selects all elements that do not match the given selector.Example$(:has(selector))Descript...
11$(:parent)Description: Select all elements that are the parent of another element, includingtext nodes.Example
12$(:header)Description: Selects all elements that are headers, like h1, h2, h3 and so on.ExampleNext Adjacent Selector (“...
13JQuery selectors documentationAll JQuery selectors and examples can be found on this link.http://api.jquery.com/category...
Advanced j query selectors
Advanced j query selectors
Upcoming SlideShare
Loading in...5
×

Advanced j query selectors

736

Published on

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
736
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Advanced j query selectors"

  1. 1. 01 $([attribute|="value"])Description: Selects elements that have the specified attribute with a valueeither equal to a given string or starting with that string followed by a hyphen(-).Example$([attribute*="value"])Description: Selects elements that have the specified attribute with a valuecontaining the a given substring.Example
  2. 2. 02$([attribute^="value"])Description: Selects elements that have the specified attribute with a valuebeginning exactly with a given string.Example$([attribute$="value"])Description: Selects elements that have the specified attribute with a valueending exactly with a given string. The comparison is case sensitive.Example
  3. 3. 03$([attribute!="value"])Description: Select elements that either dont have the specified attribute, ordo have the specified attribute but not with a certain value.Example
  4. 4. 04$(:visible)Description: Selects all elements that are visible.Example$(:checked)Description: Matches all elements that are checked.Example
  5. 5. 05$(:eq(index))Description: Select the element at index n within the matched set.Example$(:nth-child(index/even/odd/equation))Description: Selects all elements that are the nth-child of their parent.Example
  6. 6. 06$(:even)Description: Selects even elements, zero-indexed.Example$(:odd)Description: Selects odd elements, zero-indexed. See also even.Example
  7. 7. 07$(:first-child)Description: Selects all elements that are the first child of their parent.Example$(:last-child)Description: Selects all elements that are the last child of their parent.Example
  8. 8. 08$(:first)Description: Selects the first matched element..Example$(:last)Description: Selects the lastmatched element..Example
  9. 9. 09$(:gt(index))Description: Select all elements at an index greater than index within thematched set.Example$(:lt(index))Description: Select all elements at an index less than index within thematched set.Example
  10. 10. 10$(:not(selector))Description: Selects all elements that do not match the given selector.Example$(:has(selector))Description: Selects elements which contain at least one element that matchesthe specified selector.Example
  11. 11. 11$(:parent)Description: Select all elements that are the parent of another element, includingtext nodes.Example
  12. 12. 12$(:header)Description: Selects all elements that are headers, like h1, h2, h3 and so on.ExampleNext Adjacent Selector (“prev + next”)Description: Selects elements which contain at least one element that matchesthe specified selector.Example
  13. 13. 13JQuery selectors documentationAll JQuery selectors and examples can be found on this link.http://api.jquery.com/category/selectors/Thank You. :)
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×