jquery ajax complete
- By Preneesh AV --
- 09-Nov-2018 --
- 95 Comments
Register a handler to be called when Ajax requests complete. Ajax request completes, jQuery triggers the ajaxComplete
event. Any and all handlers that have been registered with the .ajaxComplete()
method are executed at this time.
$( document ).ajaxComplete(function() {
$value=$("#shipping-shippingtype").find(":checked").val();
console.log("value"+$value);
if ($value==2)
{
//local delivery
$("#panel2").show();
$("#agent").show();
$("#awb").hide();
$("#courier").hide();
}
else if ($value==3)
{//courier
$("#panel2").show();
$("#awb").show();
$("#courier").show();
$("#agent").hide();
}
});