forked from RobinHerbots/Inputmask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (34 loc) · 1003 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
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="css/inputmask.css" rel="stylesheet" type="text/css">
</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.bundle.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>