hi all,
i want loading image should be display first for 3-4 second on every search button click then result should be display.
$(document).ready(function () {
$('#form').submit(function() {
$('#dsr').addClass('loading');
$.ajax({
type: 'get',
url: 'search_hotel.php',
data: $('#'+this.id).serialize(),
dataType: "html",
async:false,
success: function(result){
$('#dsr').html(result);
},
complete: function() {
$('#dsr').removeClass('loading');
}
});
return false;
});
});
any help appre...
thnx