$(function(){
$('#name').bind('input', function(){
$(this).val(function(_, v){
return v.charAt(0).toUpperCase() + v.slice(1);
});
});
});
Last active
July 6, 2016 06:41
-
-
Save evgv/18b9c99269e7db8e6d9d15398e0859f2 to your computer and use it in GitHub Desktop.
jQuery. You can set any selector for field instead #name and you get realtime capitalize first letter in input, I'm use it for name, city etc fields.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment