I am trying to auto-capitalize the first character of a textarea/input that the user inputs. The first attempt looked like this:
$(document).ready(function() {
It would be much easier to use CSS in this case:
input{ text-transform: capitalize; }
Update: this works when you don't want to capitalize the first letter of every word, but only the first letter of the first word:
input::first-letter{ text-transform: uppercase; }