Created
February 11, 2022 09:53
-
-
Save pradeeprjth/7ced727610546da1635b972f5f3d2c41 to your computer and use it in GitHub Desktop.
This file contains 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
$('#text').keyup(function () { | |
var currVal = $(this).val(); | |
$(this).val(currVal.charAt(0).toUpperCase() + currVal.slice(1).toLowerCase()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment