Which jQuery method gets the HTML content of an element?
-
A
html()
Correct answer
-
B
content()
-
C
getHTML()
-
D
innerHTML()
16 views
Explanation
The html() method gets or sets the HTML content of the first matched element.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ