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 the response to the specified HTML element.Which function should you add?
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);
});
}