PrepAway - Latest Free Exam Questions & Answers

You need to add a client-side function to write theresponse to the specified HTML element.Which function shoul

You are developing an ASP.NET web page. The page includes functionality to make a web request and to
display the responde in a specified HTML element.
You need to add a client-side function to write theresponse to the specified HTML element.Which function
should you add?

PrepAway - Latest Free Exam Questions & Answers

A.
function loadData(url,element){
$(element).ajaxStart(function(){
$(this).text(url);
});
}

B.
function loadData(url,element){
$(element).ajaxSend(function(){
$(this).text(url);
});
}

C.
function loadData(url,element){
$.post(element,function(url){
$(element).text(url);
});
}

D.
function loadData(url,element){
$.get(url,function(data){
$(element).text(data);
});
}


Leave a Reply