Convert string to proper case with javascript

Posted by MDCore on Stack Overflow See other posts from Stack Overflow or by MDCore
Published on 2008-10-13T08:05:02Z Indexed on 2010/06/16 15:02 UTC
Read the original article Hit count: 370

Filed under:

Is there a simple way to convert a string to proper case? E.g. john smith becomes John Smith. I'm not looking for something complicated like John Resig's solution, just (hopefully) some kind of one- or two-liner.

© Stack Overflow or respective owner

Related posts about JavaScript