linux1880 Posted June 12, 2010 Share Posted June 12, 2010 I have two input fields, where first letter of each should be in capital letter. How do i achieve it. for example if user input meg ryan, it should appear as (Meg Ryan) pls help thanks Quote Link to comment Share on other sites More sharing options...
premiso Posted June 12, 2010 Share Posted June 12, 2010 Well, if the jQuery accesses the data via a php script, use ucwords. Or you can use this function: http://phpjs.org/functions/ucwords:569 and it should work. Quote Link to comment Share on other sites More sharing options...
ignace Posted June 12, 2010 Share Posted June 12, 2010 I have two input fields, where first letter of each should be in capital letter. How do i achieve it. You don't need JS for that, apply a CSS class: text-transform: capitalize; Quote Link to comment Share on other sites More sharing options...
linux1880 Posted June 12, 2010 Author Share Posted June 12, 2010 Thank you so much ignace Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.