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 -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -