JavaScript - Input BUTTON hide - not working
<pre><code>&lt;input id="btnupdate" type="button" value="Update" onclick="update()"/&gt;
&lt;img id="loadupdate" src="http://localhost/connectu/styles/images/load_big.gif"&gt;
</code></pre>

<p>This code is returned by and PHP script in response to AJAX request. The update() function contains the code to hide the button and the image.</p>

<pre><code>document.getElementById('btnupdate').style.display='none';
document.getElementById('loadupdate').style.display='none';
</code></pre>

<p>The update() function is in the native file. But the problem is, image gets hidden but not button.
I tried FIREBUG. No javascript errors.</p>
