Minimal Date And Time Input Mask / Validation Plugin For jQuery

File Size: 3.18 KB
Views Total: 9729
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Minimal Date And Time Input Mask / Validation Plugin For jQuery

alex-date-time.js is a lightweight and convenient jQuery input mask plugin which automatically formats and validates date & time inputs in "DD/MM/YYYY" and "HH:MM" formats.

How to use it:

1. Load the jQuery alex-date-time.js script after you've loaded the latest version of jQuery library.

<script src="//code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="alex-date-time.js"></script>

2. Call the function typeADate() on the date & time inputs and the plugin will do the rest.

$("#date").typeADate();
$("#time").typeATime();

This awesome jQuery plugin is developed by hommalex. For more Advanced Usages, please check the demo page or visit the official website.