forked from dazhall/Simple-Placeholder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.html
More file actions
24 lines (22 loc) · 722 Bytes
/
examples.html
File metadata and controls
24 lines (22 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple-Placeholder Demo</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.simpleplaceholder.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function(){
$('input[placeholder]').simplePlaceholder();
$('textarea[placeholder]').simplePlaceholder();
})
</script>
</head>
<body>
<form>
<input type="email" placeholder="Email Field" />
<input type="text" placeholder="Text Field" />
<textarea placeholder="This is a placeholder"></textarea>
</form>
</body>
</html>