$('#ajaxInProgress')
.ajaxStart(function() {
$(this).addClass('progress');
})
.ajaxStop(function(){
$(this).removeClass('progress');
});
the above applied only to : $.ajax({
what is i have $.post(url, { like below???
can .post converted to .ajax, I want use ajaxStart/ajaxStop?
$('#send').click(function(){
$.post(url, {
email: $('#email').val(),
subject: $('#subject').val(),
comments: $('#details').val()
}, function(response){
finishAjax('userresult', response);
alert(response);
});