Use the below code on exit event of textfieldif (!(this.isNull || this.rawValue == "")) { var str = this.rawValue; var char1 = str.substring(0,1); var char2_n = str.substring(1,str.length); this.rawValue = char1.toUpperCase() + char2_n.toLowerCase();}Thanks,Vipin