I am using following script.I am sending some data to php side using ajax and I need to find which all data I send to php have failed and I need to display failed data as html in client side.I am not getting how to find failed data and put all in html by using jquery.(I have 2 input box in html side and keep on adding data to server.Sometimes it may fail.I just want to find failed data and should allow to do ajax again to server) I find similar issues here JQuery: AJAX error: get data sent to server
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("#driver").click(function(event){
$.ajax( {
url:'/jquery/result',
data:{data1:a,data2:b},
success:function(data) {
$('#stage').html(data);
}
});
});
});
</script>