I am new in jQuery ajax. I have created a ajax form in magento. and it works fine. But now i want to add the loader image in that. My code for the form is written
jQuery(function () {
var checkurl = URL + "customer/account/signupformpopup/";
jQuery('#alogin').click(function () {
jQuery('.cc-register-form').hide(600);
jQuery('.cc-signup-form').show("slow");
jQuery.ajax({
url: checkurl,
success: function (data) {
var $signupForm = jQuery('<div class="cc-signup-form">'+data+'</div>');
if (jQuery('#tinybox-wrap').children().hasClass('cc-signup-form')) {
return false;
}
else {
jQuery('#tinybox-wrap').append($signupForm);
}
}
})
});
});