Skip to content

Instantly share code, notes, and snippets.

@jamesallardice
Last active December 15, 2015 07:09
Show Gist options
  • Save jamesallardice/5221766 to your computer and use it in GitHub Desktop.
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)
<!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