I have looked through a lot of the other threads on here with this question. I am having issues capitalizing the first letter of an input.
http://jsfiddle.net/sA9c8/2/>
Are you trying to do this
function crmForm_lastname_onblur(sourceField, sourceRowId) { var val = sourceField.value; if (val.charAt(0).toUpperCase() != val.charAt(0)) sourceField.value = val.charAt(0).toUpperCase() + val.slice(1) }
FIDDLE