Loading…

What is the difference between text() and HTML() in jQuery?

The text() method return text value inside an HTML element whereas HTML() method returns the entire HTML syntax.

The text() method is used to manipulate the value and the HTML() method is used to manage the HTML object or properties.

Suggest An Answer

No suggestions avaliable!

Latest post from Jquery interview questions

Ask Question