jQuery change text case
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript">Convert string to title case with javascript</a><br>
  <a href="http://stackoverflow.com/questions/2017456/with-jquery-how-do-i-capitalize-the-first-letter-of-a-text-field-while-the-user">With jQuery, how do I capitalize the first letter of a text field while the user is still editing that field?</a>  </p>
</blockquote>



<p>I need the jQuery or Javascript equivalent to a PHP function:</p>

<pre><code>&lt;?php ucwords(strtolower('SOMETHING') ?&gt; //Outputs "Something"
</code></pre>

<p>I've seen <code>.toUpperCase()</code> in Javascript, but can't find a "capitalize first letter" function.</p>
