-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo-jquery-persist2.html
48 lines (48 loc) · 1.36 KB
/
demo-jquery-persist2.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery-persist.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('input,select,textarea').persist();
});
</script>
<style type="text/css">
body {
padding:3em;
font-family:sans-serif;
}
input[type=text],textarea,select { width:25%; }
</style>
</head>
<body>
<h1>jQuery-persist - demo 2</h1>
That's right - stuff persists on other pages, too.
Based on the form elements' name and the context
passed in the constructor options.
<hr/>
<form>
<input type="text" name="test1" /><br/>
<textarea name="test5">six..</textarea><br/>
<select name="test2">
<option>3</option>
<option>4</option>
</select><br/>
<select name="test17" multiple="multiple">
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>nine</option>
</select><br/>
<input type="radio" name="test7" value="1" />1
<input type="radio" name="test7" value="2" />2
<input type="radio" name="test7" value="3" />3<br/>
<input type="checkbox" name="test8" value="1" />1
<input type="checkbox" name="test8" value="2" />2
<input type="checkbox" name="test8" value="3" />3
</form>
<hr/>
201203*pike
</body>
</html>