.text()
jQuery .text() is one of the methods which allows to insert text to the matched element. You can combine the text of elements or even replace the text in a particular element.
The below example clearly shows you how to replace the existing text with new text in an element using .text() function.