input time mask using jquery

后端 未结 5 1465
庸人自扰
庸人自扰 2021-02-06 11:37

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

5条回答
  •  清歌不尽
    2021-02-06 12:26

    I think this might work

        $(document).ready(function(){
    
        $("#txtTime").setMask('time').val('hh:mm');
    
    })
    

    http://www.jsfiddle.net/9dgYN/1/

提交回复
热议问题