forked from sffc/placeholdr
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
26 lines (24 loc) · 798 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<title>Placeholdr Demo</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="placeholdr.min.js"></script>
</head>
<body>
<form>
<input type="text" name="username" id="username" placeholder="Username" />
<input type="password" name="password" id="password" placeholder="Password" />
<textarea name="comment" id="comment" placeholder="Comment Here"></textarea>
<input type="submit" />
</form>
<button id="values">Display Values</button>
</body>
<script type="text/javascript">
$("#values").click(function(){
alert("Username Value: " + $("#username").val());
alert("Password Value: " + $("#password").val());
alert("Comment Value: " + $("#comment").val());
});
</script>
</html>