I use Robin Herbots jQuery.Inputmask to restrict what my users are allowed to enter into textboxes, I've found that this jQuery plugin works rather well. I have a textbox on my form that I want to be able to restrict the input to only characters A-Z (upper and lowercase), spaces, and numbers. The documentation, located here, doesn't address this particular case and nothing I've attempted works neither does anything I've found online. My textbox code:
$(document).ready(function () {
$("#<%=TextBox_DataFieldTitle.ClientID%>").inputmask("******************");
});
Any suggestions?
You can use the
regexproperty:Side note: this library has an issue: it doesn't respond well to combination keys, like the
¨key I have on my keyboard, which is intended to be combined with the next key stroke, likeein order to typeë.