<input id="btnupdate" type="button" value="Update" onclick="update()"/>
<img id="loadupdate" src="http://localhost/connectu/styles/images/load_big.gif">
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.
document.getElementById('btnupdate').style.display='none';
document.getElementById('loadupdate').style.display='none';
The update() function is in the native file. But the problem is, image gets hidden but not button.
I tried FIREBUG. No javascript errors.
This should be
style.display:SEE IT’S WORKING