Make your own free website on Tripod.com

jQuery Selector Test Bed

Type a jQuery selector in the field below to see what elements jQuery selects:

jQuery code: $('  ')

Elements found:

Help

Sample Selectors (click to try)

  • body
  • p
  • .clickable
  • #main
  • #main h2
  • div>h2
  • h1+p
  • input[type=text]
  • p:first
  • p:last
  • p:even
  • p:odd
  • li:contains(#main)
  • p:has(em)
  • a[href=#]
  • a[href*=sawmac.com]
  • :checked
  • :disabled

More HTML to Select

Heading 3

Quis nostrud exercitation ut labore et dolore magna aliqua. Sed do eiusmod tempor incididunt cupidatat non

Heading 3

Quis nostrud exercitation ut labore et dolore magna aliqua. Sed do eiusmod tempor incididunt cupidatat non

Form Fields