Of course, I am a novice in jquery. What $.text() gets is the text of all matching elements. It should be noted that $.text(val) will replace the Delete everything (including the html tag inside) and set text, which is equivalent to $.html (val). The official statement is "Set the text contents of all matched elements. Similar to html(), but escapes HTML (replace "<" and "> ;" with their HTML entities)."