+ 1
How the language will be structured to get the following answer: (a) ab (b) a
What is the output of this code if the HTML code is <p>a<span>b</span></p>? $(function() { $("p span").text("a"); }); How the language will be structured to get the following answer: (a) ab (b) a
4 Antworten
+ 3
answer is aa
bcs the span tag will be changed text a and there is already present a in the p tag
so that ans is aa
+ 1
Shouldn't it be 'aa'?
+ 1
It is aa
0
What is the output of this code if the HTML code is <p>a<span>b</span></p>?
$(function() {
$("p span").text("a"); -> [span will be changed text a and there is already present a in the p tag ]
});
Answer: aa