Im using jquery inputmask
How can I use below code to any input text with out a mask? any letter inputted will force to uppercase.
Inputmask.extendAliases({
uppercase: {
mask: '' // any letters
definitions: {
'*': {
casing: "upper" //
}
}
});
js
$('.uppercase').inputmask({casing:'upper'});
$('.lowercase').inputmask({casing:'lower'});
html
<input type="text" class="uppercase" />
<input type="text" class="lowercase" />