Fill in the blanks to create a new <span> element and append it to the element with id="txt". | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Fill in the blanks to create a new <span> element and append it to the element with id="txt".

How Slove this problem

26th Jul 2018, 6:08 AM
Waqas Sajjad
Waqas Sajjad - avatar
3 Answers
+ 2
var a = $("<span></span>"); $("#txt").append(a);
7th Sep 2018, 5:29 PM
El Hussein Ahmed
El Hussein Ahmed - avatar
0
Which of the 3 blanks are you struggling with? You can sacrifice xp for a hint, or swipe right to review the material and look at the comments.
26th Jul 2018, 6:35 AM
Janning⭐
Janning⭐ - avatar
0
$("#txt").append("<span></span>");
26th Jul 2018, 8:17 AM
ReimarPB
ReimarPB - avatar