Last active
August 14, 2021 05:57
-
-
Save AnatoliyAkhmatov/0f851a1b1ea8abd264594706c6c00486 to your computer and use it in GitHub Desktop.
input name mask
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#input_name').keypress(function(e) { | |
if (e.keyCode == 32) return false; | |
if (this.value.length == 1) { | |
this.value = this.value.toUpperCase() | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment