-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (28 loc) · 1.27 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery clearableInput plugin</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<link rel="stylesheet" href="src/clearableInput.css">
<script src="src/clerableInput.js"></script>
</head>
<body>
<div class="row" style="padding: 15px;">
<div class="col-md-3">
<div class="clearableInput">
<a href="#" class="ciInputIcon"><i class="fa fa-times ciIcon"></i></a>
<input class="form-control ciInput" type="text" id="element" value="">
</div>
</div>
</div>
<script>
$("#element").clearableInput({
'type' : 'numeric' //alphanumeric
});
</script>
</body>
</html>