change background color through onkeyup of input text box
<pre><code>&lt;input id='ad' onkeyup='sc(id)'/&gt;
&lt;script lang="javascript"&gt;
function sc(i)
{
    i.style.backgroundColor="#006400";
}
&lt;/script&gt;
</code></pre>

<p>This is the code I am using to change the background colour of the input box through id, but it is not working. Please suggest some way to change the background colour of the input box.</p>
