YoucreateaWebpagethatcontainsthespanshowninthefollowinglineofcode.TextYouneedreplacethecontentsofthespanwithHTMLthatyoudownloadfromaURLspecifiedbyaglobalvariablenamedlocalURL.Whichcodesegmentshouldyouuse?()
A.$.ajax({type:"GET",url:localURL, dataType:"jsonp",success:function(htmlText {$("#span1").text(htmlText);}});
B.$.ajax( localURL,{}, function(htmlText){$("#span1").html(htmlText);},"html");
C.$.ajax({ type:"GET",url:localURL,dataType:"html",success:function(htmlText){$("#span1").innerHTML=htmlText;}});
D.$.ajax({ type:"GET",url:localURL, success:function(htmlText){$("#span1").html(htmlText);}});