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 defaultValue
is a possible option.
It looks like the following should work (but it doesn't):
$("#txtTime").setMask({mask: "time", defaultValue:"hh:mm"});
This is what I was looking at:
$.fn.extend({
setMask : function(options){
return $.mask.set(this, options);
},
And
// default settings for the plugin
options : {
attr: 'alt', // an attr to look for the mask name or the mask itself
mask: null, // the mask to be used on the input
type: 'fixed', // the mask of this mask
maxLength: -1, // the maxLength of the mask
defaultValue: '', // the default value for this input