-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdemo.html
More file actions
61 lines (54 loc) · 1.3 KB
/
demo.html
File metadata and controls
61 lines (54 loc) · 1.3 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<head>
<title>jQuery iPass Plugine</title>
<style>
div#container {
width: 950px;
margin: 0 auto;
font-size: 18px;
margin-top: 50px;
}
input {
font-size: 18px;
padding: 5px;
}
input#demo2 {
color: blue;
}
pre#code {
display:none;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jquery.ipass-1.1.js"></script>
<script type="text/javascript">
$(function(){
$("form").submit(function(){
var params = $(this).serialize();
$("div#msg").html("Form serialized parameters: " + params);
return false;
});
$("div#demo1 input[name='password']").iPass();
})
</script>
</head>
<body>
<div id="container">
<h1>jQuery iPass Plugin Demo</h1>
<div id="msg"></div>
<div id="demo1">
<h3>Demo 1</h3>
<p>Enter your password:</p>
<form>
<input type="text" title="Enter your password" name="password" />
<button type="submit">Submit</button>
</form>
<code>
$("div#demo1 input[name='password']").iPass();
</code>
</div>
<pre id="code">
</pre>
</div>
</body>
</html>