I have a simple jquery code to send a content in a jQuery modal window with ajax! everything is working without any problem. in normal, after clicking on the send button, af
$('#button').click(function(){ $('#loading-div').html(''); $.ajax({ type: 'POST', url: '...', data: {...}, success: function(response) { $('#loading-div').html(''); } }); });
In case if you have button with id="button", and some in which you can display image
id="button"
http://api.jquery.com/jQuery.ajax/