Selector
|
Example
|
Description
|
*
|
$("table *")
|
Select All Elements.
|
#id
|
$("#name")
|
Selected element with
id="name".
|
.class
|
$(".name")
|
Selected elements with
class="name".
|
tag
|
$("p")
|
Selected All p elements.
|
:input
|
$(":input")
|
selected All input elements
|
:text
|
$(":text")
|
selected All input elements with
type="text"
|
:button
|
$(":button")
|
selected All input elements with
type="button".
|
:password
|
$(":password")
|
selected All input elements with
type="password"
|
:radio
|
$(":radio")
|
selected All input elements with
type="radio"
|
:checkbox
|
$(":checkbox")
|
selected All input elements with
type="checkbox".
|
:image
|
$(":image")
|
selected All input elements with
type="image".
|
:file
|
$(":file")
|
selected All input elements with
type="file".
|
:submit
|
$(":submit")
|
selected All input elements with
type="submit"
|