<input id="btnupdate" type="button" value="Update" onclick="update()"/>
<img id="loadupdate" src="http://localhost/connectu/styles/images/load_big.gif">
This particular HTML code snippet is generated by a PHP script in response to an AJAX request. The update() function included handles the display properties of both the button and the image.
document.getElementById('btnupdate').style.display='none';
document.getElementById('loadupdate').style.display='none';
The update() function resides within the main file. However, an issue has been identified where the button remains visible while the image successfully hides. Troubleshooting efforts have been made using FIREBUG but no JavaScript errors have been found.