Hi all,
I am using jquery's $.post for ajax (like populating a selectbox with a value selected in different selectbox). I used the following code for this
$('#cmbState').change(function(){
$.post('<?php echo APP_URL."include/ajax.php"; ?>', {stateid: $(this).val(), option: 'getCitiesList'}, function(response){
if(response != '')
{
$('#cmbCity').html(response);
}
})
});
The code above works perfectly fine but it does not notify the user that the ajax request is in process and he has to wait a bit.
I want to show an image next to the html control which is displayed until the response is loaded.
I want the answer in terms of jquery only. Found something related to this on jquery docs also ($.ajax) but I want to achieve this functionality using $.post method (if it is possible).
Please help me with this. any clues are greatly appreciated
thanks