Change Input val. and type using jQuery
<pre><code>&lt;input name="myusername" type="text" id="u" class="blackle u" value="Username..." /&gt;
&lt;input name="mypassword" type="text" id="p" class="blackle p" value="Password..." /&gt;
</code></pre>

<p>Using jQuery...<br>
Onfocus - if #u has val "Username..." then change it to "" (blank)<br>
OnBlur - if #u has val "" (blank) then change it back to "Username..."</p>

<hr>

<p>Onfocus - if #p has val "Password..." then change it to "" (blank) ; additionally here the val of attribute type should be changed to "password" from "text"...<br>
OnBlur - if #u has val "" (blank) then change it back to "Password..." ; Again the val of type attribute should be changed back to "text" from "password"...</p>
