Last active
December 15, 2015 07:09
-
-
Save jamesallardice/5221766 to your computer and use it in GitHub Desktop.
A simple example to enable Placeholders.js with hide-on-input settings (rather than hide-on-focus)
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
<!doctype html> | |
<html data-placeholder-focus="false"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Placeholders.js Default Config</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css"> | |
</head> | |
<body class="placeholder-example"> | |
<input type="text" placeholder="I have a placeholder!"><br> | |
<input type="password" placeholder="Password placeholders!"><br> | |
<textarea placeholder="We all hide on input!"></textarea> | |
<script src="assets/js/placeholders.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment