This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexemple.html
49 lines (44 loc) · 1.51 KB
/
exemple.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
<!DOCTYPE html>
<html>
<head>
<title>Input multi element demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Input multi element demo">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="input-multiple-element.css">
<style type="text/css">
* {
font-family: "Verdana, Arial, Helvetica, sans-serif";
}
body {
background-color: #a2c5f9;
}
</style>
</head>
<body>
<div id='ime1'></div>
<div id='ime2'></div>
</body>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="input-multiple-element.js"></script>
<script type="text/javascript">
$(document).ready(function() {
InputMultiElement().init(
"#ime1",
{
maxElement: 50
}
);
$("#ime1").on("ime:element:add", function(_e, _elem) {
console.log("Element is added", _elem);
});
$("#ime1").on("ime:element:delete", function(_e) {
console.log("Element is deleted");
});
$("#ime1").on("ime:element:update", function(_e, _elem) {
console.log("Element is update", _elem);
});
});
</script>
</html>