How to replace the content of an element using jquery?
To replace the content of an element using jQuery, use the text() method.
1. Code:
The initial text
2. Example:
Run the program to get the result.
To replace the content of an element using jQuery, use the text() method.
The initial text
Run the program to get the result.