javascript - How to use jQuery input mask plugin with special character regex validation? -


i want utilize inputmask plugin special character & maxlength validation text box. supports either one. there way implement this?

    var pattern = /^[\w\s\/\&\'\-]*$/i;     $("#example1").inputmask("99-9999999");     $("#example2").inputmask(pattern); 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -