Skip to content

Instantly share code, notes, and snippets.

@d3ep4k
Created August 13, 2015 08:16
Show Gist options
  • Select an option

  • Save d3ep4k/f578b68ba45e4ccfd7f4 to your computer and use it in GitHub Desktop.

Select an option

Save d3ep4k/f578b68ba45e4ccfd7f4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!-- saved from url=(0051)https://mathiasbynens.github.io/jquery-placeholder/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
</head>
<body>
<input type="text" name="name" placeholder="Enter Name" autofocus="autofocus" />
<script src="./HTML5 placeholder jQuery Plugin_files/jquery.min.js"></script>
<script src="./HTML5 placeholder jQuery Plugin_files/jquery.placeholder.js"></script>
<script>
$(function() {
// Invoke the plugin
$('input, textarea').placeholder({customClass:'my-placeholder'});
$('[autofocus]').focus();
});
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment