View Single Post
  #17  
Old 05-14-2007, 08:13 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Capitalise First Letters in Customer Info

why the loop through all the letters?

use split and then do a
o[i].charAt(0).toUpperCase()+o[i].substr(1).toLowerCase()
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote