title: How can I make the first letter of a variable always capital?
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/1026069/capitalize-the-first-letter-of-string-in-javascript">Capitalize the first letter of string in JavaScript</a></p>
  </blockquote>
  
  <p>I am making something called &quot;The HTML Quiz&quot;. It's made with JavaScript. When the user first enters it, they have to enter their name. Once they click submit, the name they enter is saved into a variable. It doesn't look nice when it says:</p>
  <blockquote>
  <p>Dear nathan,</p>
  <p>You are about to take The HTML Quiz. Please.....</p>
  </blockquote>
  <p>I think it looks better like this:</p>
  <blockquote>
  <p>Dear Nathan,</p>
  <p>You are about to take The HTML Quiz. Please.....</p>
  </blockquote>
  <p>But if the user enters their name starting with a lowercase letter, it will stay that way. Is there anyway to make that first letter turn into an uppercase letter if it is lowercase <strong>with jQuery</strong>?</p>
  <p>For example, here is a simple name enter script: <a href="http://jsfiddle.net/RcLt6/" rel="nofollow noreferrer">http://jsfiddle.net/RcLt6/</a></p>
  <p>If you enter your name in all lowercase, of course, it will be all lowercase. How can I make the first character entered always be capitalized no matter what?</p>