forked from RobinHerbots/Inputmask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 927 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<input id="test1" name="test1"/><br/>
<input id="test2" name="test2"/><br/>
<input id="test3" name="test3"/><br/>
<br/>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="dist/jquery.inputmask.js" charset="utf-8"></script>
<script>
console.log(navigator.userAgent);
$("#test1").inputmask("datetime", {
inputFormat: "dd/mm/yyyy",
outputFormat: "mm-yyyy-dd",
inputEventOnly: true
});
$("#test2").inputmask("datetime", {
inputFormat: "dd/mm/yyyy",
outputFormat: "mm-yyyy-dd",
inputEventOnly: true
});
$("#test3").inputmask("datetime", {
inputFormat: "dd/mm/yyyy",
outputFormat: "mm-yyyy-dd",
inputEventOnly: true
});
</script>
</body>
</html>