Skip to content

Commit

Permalink
Tweak README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Mar 7, 2011
1 parent ece35eb commit 39d44e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ The plugin automatically adds `class="placeholder"` to the elements who are curr
* Caches the results of its two feature tests in `jQuery.fn.placeholder.input` and `jQuery.fn.placeholder.placeholder`. For example, if `@placeholder` is natively supported for `input` elements, `jQuery.fn.placeholder.input` will be `true`. After loading the plugin, you can re-use these properties in your own code.
* Makes sure it never causes duplicate IDs in your DOM, even in browsers that need an extra `input` element to fake `@placeholder` for password inputs. This means you can safely do stuff like:

<label for="bar">Example label</label>
<input type="password" placeholder="foo" id="bar">
<label for="bar">Example label</label>
<input type="password" placeholder="foo" id="bar">

And the `<label>` will always point to the `<input>` element you’d expect. Also, all CSS styles based on the ID will just work™.

Expand Down

0 comments on commit 39d44e8

Please sign in to comment.