title: How to add ucwords and strtolower to this form
body: <p>I want "s.value" to be turned all to lowercase and then ucwords to it but I don't know how to do it since it's inside a form.</p>
  
  <p>Basically I want to do something like this: ucwords(strtolower(   s.value here    ));</p>
  
  <p>This is the form:</p>
  
  <pre><code>   &lt;form role="search" method="get" id="searchform" action="http://chusmix.com/?s=" onsubmit="if (document.getElementById('s2').value.length &gt; 5) window.location = action + '&lt;php echo $city; ?&gt;++++' + s.value; return false;" &gt;
  </code></pre>
  
  <p>Thanks</p>