I have an HTML table. In each cell there is an image followed by some text. Something like this:
<td>
<img src='image.gif'>This is a test
</td>
I have to run a jQuery Ajax call and during this call I want to change the image to a loading image that I have (loading.gif) and then return it to the regular image (image.gif in this case) after the Ajax is complete.
What is the correct jQuery syntax to change the image to the loading image and back again?