I have two asp.net textboxes I need code for input mask with time format and also for date format. Please provide url of jquery file also. Thank you
Asked
Active
Viewed 3,954 times
1 Answers
0
Try this,
HTML
<input type="text" id="date" />
<input type="text" id="time" />
SCRIPT
jQuery(function($){
$("#date").mask("99/99/9999");
$("#time").mask("99:99");
});
Read http://digitalbush.com/projects/masked-input-plugin/#demo See jQuery-Mask-Plugin
Download the latest
from github repo

Rohan Kumar
- 40,431
- 11
- 76
- 106
-
This can make time vulnerable to "59:60" for example. – MarceloBarbosa Dec 01 '14 at 13:56