I have an Ajax function which takes some time to respond, due to large file. How do I interrupt the response function if I want to stop the Ajax request?
$("#startAjaxButton").click(function(){
$.ajax({
url:"ajaxRequest.txt",
success:function(result){
$("#div1").html(result);
}
});
});