- 1

Div elements

Can anyone help me with this question? Fill in the blanks to create a new div element with the text “Hi” and insert it before the element with id = “demo”. *** a = $ (“<div></div>”).text(”Hi”);$(“****”).*****(*); The ** represent the blank spaces to fill in! Does anyone have any idea?

15th Jan 2019, 9:30 PM
Brent Malcolm
12 ответов
+ 2
before content div
11th May 2021, 7:26 PM
IMTIAZ AHMAD
IMTIAZ AHMAD - avatar
+ 1
var a = $ (“<div></div>”).text(”Hi”); $(“#demo”).before(a);
15th Jan 2019, 11:28 PM
Toni Isotalo
Toni Isotalo - avatar
+ 1
div: before { content: "***"; } div :after { content: "***"; }
17th Jun 2021, 6:01 PM
Ashutosh Pattnaik
Ashutosh Pattnaik - avatar
+ 1
Fill in the blanks to hide the element in 1.5 seconds. $("p"). hide ( 1500 );
10th Sep 2022, 6:29 PM
MD MAHMUD HASAN
0
Just making sure but is this HTML? I am curious about the style but i have my doubts.
15th Jan 2019, 9:49 PM
Dingo
Dingo - avatar
0
jQuery Attributes and contents!
15th Jan 2019, 10:01 PM
Brent Malcolm
0
yeah, this was a potato mistake by me for assuming that is html... sorry but I am not skilled in this but I can’t wait for the answer to this post.
15th Jan 2019, 10:09 PM
Dingo
Dingo - avatar
0
i have 3/4’s of the answer just missing one part!
15th Jan 2019, 10:15 PM
Brent Malcolm
0
var e = $("<div>< /div >"); $ ("#test").append( e );
4th Mar 2021, 3:31 PM
Cesar Aramayo
Cesar Aramayo - avatar
0
Fill in the blanks to add three stars *** before and after all div elements of the page.
15th Nov 2021, 2:30 PM
Drame
0
fill in the blanks to make equal columns from the div elements, which are wrapped in a <main> element
29th Sep 2022, 9:57 PM
osuigba Nmesoma Goodness
- 1
no answer here. but apparently this was posted on my half bday...
17th Apr 2021, 6:51 PM
Adelyn Chung
Adelyn Chung - avatar