Button with image and loading element id when clicked

Posted by Diego Correa on Stack Overflow See other posts from Stack Overflow or by Diego Correa
Published on 2010-04-23T14:06:23Z Indexed on 2010/04/23 14:13 UTC
Read the original article Hit count: 326

Filed under:
|
|
|
|

Hello guys, I've made an application that makes full use of ajax, and what I need to do is: I want a button with a description + image that when clicked is disabled and instead of the original image in the button, appears the ajax loading element id inside the button. And when the ajax loading is complete, the original image of the button returns to the normal.

Is there any good source on how to do something like this? What do you guys suggest?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript