Question: what is the difference between val and text in jquery?
Answer: The difference between text(),html() and val() in JQuery Print the text content in the current label, and if there is a sublabel, print the sublabel itself with the text in the sublabel. val() method returns or sets the value of the selected element. The value of the element is set through the value attribute.