index.html 1003 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link href="css/inputmask.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <body>
  9. <input id="test1" name="test1"/><br/>
  10. <input id="test2" name="test2"/><br/>
  11. <input id="test3" name="test3"/><br/>
  12. <br/>
  13. <script type="text/javascript" src="node_modules/jquery/dist/jquery.js" charset="utf-8"></script>
  14. <script type="text/javascript" src="dist/jquery.inputmask.bundle.js" charset="utf-8"></script>
  15. <script>
  16. console.log(navigator.userAgent);
  17. $("#test1").inputmask("datetime", {
  18. inputFormat: "dd/mm/yyyy",
  19. outputFormat: "mm-yyyy-dd",
  20. inputEventOnly: true
  21. });
  22. $("#test2").inputmask("datetime", {
  23. inputFormat: "dd/mm/yyyy",
  24. outputFormat: "mm-yyyy-dd",
  25. inputEventOnly: true
  26. });
  27. $("#test3").inputmask("datetime", {
  28. inputFormat: "dd/mm/yyyy",
  29. outputFormat: "mm-yyyy-dd",
  30. inputEventOnly: true
  31. });
  32. </script>
  33. </body>
  34. </html>