Set Content – text(), html(), and val()
We will use the same three methods from the previous page to set content:
text()
– Sets or returns the text content of selected elementshtml()
– Sets or returns the content of selected elements (including HTML markup)val()
– Sets or returns the value of form fields
The following example demonstrates h Continue reading jQuery – Set Content and Attributes