forked from mathiasbynens/jquery-placeholder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cross-browser support for type=password, based on sidonath’s fork.
- Loading branch information
1 parent
22b94f3
commit add0684
Showing
3 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ This plugin was based on a code snippet by [Paul Irish](http://paulirish.com/), | |
<input type="email" name="email" placeholder="e.g. [email protected]"> | ||
<input type="url" name="url" placeholder="e.g. http://mathiasbynens.be/"> | ||
<input type="tel" name="tel" placeholder="e.g. +32 472 77 69 88"> | ||
<input type="password" name="password" placeholder="e.g. h4x0rpr00fz"> | ||
<input type="search" name="search" placeholder="Search this site…"> | ||
<textarea name="message" placeholder="Your message goes here"></textarea> | ||
|
||
|
@@ -30,8 +31,8 @@ The plugin automatically adds `class="placeholder"` to the elements who are curr | |
|
||
## Notes | ||
|
||
* Works in all A-grade browsers, including IE6. | ||
* The plugin automatically checks if the browser supports the HTML5 placeholder attribute for inputs natively. If this is the case, the plugin won’t do anything. | ||
* The plugin will ignore password inputs. | ||
|
||
## Credits | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.