Home »
MCQs »
jQuery MCQs
Which is the correct syntax to insert content after the <div> elements?
70. Which is the correct syntax to insert content after the <div> elements?
- $("div").after("Text to be added");
- $("div").postpend("Text to be added");
- $("div").addafter("Text to be added");
- $("#div").after("Text to be added");
Answer: A) $("div").after("Text to be added");
Explanation:
The correct syntax to insert content after the <div> elements is:
$("div").after("Text to be added");