i have a button that runs an ajax get which takes a long time. what is the easiest way of showing an ajax loading image RIGHT BESIDE to the right of the button.
i may move the button later in the layout so i wanted this to be dynamic (compared to a hard coded div in the layout)
after the click event (before the ajax was called), i tried this:
$(selector).append("<img src='/images/ajax-loading1.gif' />");
but that didn't seem to do anything