Change text color When something is Entered in text box
<p>i have form that has multiple input text boxes, Which has got some text message in light color. When User Types something That text should Become Dark.
I got a jquery code which is working, but i cannot use that for multiple text boxes</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.js"&gt;&lt;/script&gt;
        &lt;style&gt;
        input{color:grey}
        &lt;/style&gt;
    &lt;/head&gt;


    &lt;body&gt;
&lt;div class="formWrapper"&gt;
&lt;form name=form&gt;
&lt;Input type="text" name="name1"  value="Eg : Flat-27,Block 4,Skyline" size="30"&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;script&gt;
$('input').focus(function(){
     if($(this).val() == this.defaultValue){$(this).val('');$(this).css("color","Red");}
}).blur(function(){
     if($(this).val() == ''){$(this).val(this.defaultValue);$(this).css("color","grey");}
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
