Skip to content

Commit

Permalink
add info/code about :input pseudo selector; fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Montgomery committed Feb 8, 2012
1 parent 326afda commit 5e94f6b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions content/jquery-basics/selecting-elements.md
Expand Up @@ -246,7 +246,7 @@ the pseudo-selector with a tag name/some other selector.

#### :image

<javascript caption=":file pseudo-selector">
<javascript caption=":image pseudo-selector">
$('form :image'); // selects all input elements of type "image"
</javascript>

Expand All @@ -260,7 +260,14 @@ the pseudo-selector with a tag name/some other selector.


#### :input
Selects <input>, <textarea>, and <select> elements

Using the `:input` selector selects all `<input>`, `<textarea>`, `<select>`, and
`<button>` elements.

<javascript caption=":input pseudo-selector">
$('form :input'); // selects <input>, <textarea>, <select>, and <button> elements
</javascript>


#### :password
Selects inputs with type="password"
Expand Down

0 comments on commit 5e94f6b

Please sign in to comment.