PDA

View Full Version : First Letter in Text Field as Initial Capital



bee
3 Nov 2011, 1:42 AM
Hi I want to convert my test field word in first letter capital (Init Cap).For eg If I type michael hegan in text field and once I leave the field it should convert automatically to Michael Hegan.

Please let me know if any facilities available with extjs similarly how we do put uppercase in text field

bee
3 Nov 2011, 1:54 AM
Hi Guys, I fixed this of my own way using css style

Please find below code , who are in need to use in their application.

'text-transform:capitalize',

tvanzoelen
3 Nov 2011, 1:57 AM
nice solution!

skirtle
3 Nov 2011, 9:18 AM
It is a neat trick but you need to be careful. This will only change how the text is displayed, underneath the value will still be in the original case.