I am new to the "jQuery ajax", I have the following code.
Can you explain me the code line by line :
function fun1() {
$.ajaxSetup({jsonp: null,jsonpCallback: null });
$.ajax({
type:'GET',
url: 'login.action',
dataType: 'json',
data: {
age:$("#id2").val()
},
success: function(data) {
printStudentDetails(data);
},
error:function() {
alert("failure");
}
});
}