input time mask using jquery
问题 I am using meioMask – a jQuery mask plugin to put time mask in a textbox. Here is the JsFiddle. It's working well. But I also need to put hh:mm in the textbox, to let the user know what to enter in the textbox. How to do this. EDIT: I also need to put am/pm in the mask. and I need 12 hrs time format. 回答1: It looks like you should be able to set this with the plugin. Here's a start maybe? If you look in the code, I think you should be passing setMask an options object. It looks like