Question: Which of the following will show an alert containing the content(s) of a database selection?
A
B
C
D
$.ajax({
type: "GET",
url: "process_file.php?comp_id="+comp_id,
success: function (result) {
alert(result);
}
});
B
$.ajax({
type: "GET",
success: function (result) {
alert(result);
}
});
C
$.ajax({
type: "GET",
url: "process_file.php?comp_id="+comp_id,
error: function (result) { alert(result);
}
});
D
$.ajax({
type: "GET",
url: "process_file.php?comp_id="+comp_id,
Complete: function (result) {
alert(result);
}
});
Note: Not available