-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo_4.html
98 lines (70 loc) · 2.19 KB
/
demo_4.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JQuery Cloneable</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/theme.css"/>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery-cloneable.min.js"></script>
<script type="text/javascript" src="js/demo/demo_4.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<p class="text-info">Add elements in a specific index</p>
</div>
</div>
<div class="row-fluid">
<div class="span12">
Person:
<select id="selectPerson"></select>
at index:
<select id="selectIndex" class="input-small">
<option value="0">0</option>
</select>
<button id="buttonAdd" type="button" class="btn btn-primary"><i class="icon-plus icon-white"></i> Add</button>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<table id="tableCloneable" class="table table-bordered table-striped">
<thead>
<tr>
<th>Photo</th>
<th>Full Name</th>
<th>Country</th>
<th>Education</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="model">
<td style="text-align: center;">
<img name="photo[]" src="" class="img-polaroid" style="width: 48px; height: 48px;"/>
</td>
<td>
<input name="full_name[]" type="text" class="input-block-level" placeholder="Type a full name"/>
</td>
<td>
<select name="country[]" class="input-block-level">
<option value="">Select a country</option>
<option value="México">México</option>
<option value="United States">United States</option>
</select>
</td>
<td>
<textarea name="education[]" class="input-block-level" placeholder="Type a education"></textarea>
</td>
<td>
<button type="button" class="btn btn-danger buttonDelete input-block-level"><i class="icon-trash icon-white"></i> Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>