I\'m looking for an example of how to capitalize the first letter of a string being entered into a text field. Normally, this is done on the entire field with a function, r
My personal favorite when using jQuery is short and sweet:
function capitalize(word) { return $.camelCase("-" + word); }
There's a jQuery plugin that does this too. I'll call it... jCap.js
$.fn.extend($, { capitalize: function() { return $.camelCase("-"+arguments[0]); } });