1 2 3 4 5 6 7 8 9 10 11
|
//It just haves the options bellow that will be applyed by default if you don’t specify any.
$.mask.options = 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
defaultValue : '', // the default value for this input
onInvalid : function(){}, // called when receive wrong input
onValid : function(){}, // called when receive correct input
onOverflow : function(){} // called when the input should receive more input
};
|