The replaceAll() method is an inbuilt method in jQuery which is used to replace selected elements with new HTML elements.
Parameters: This method accepts two parameter as mentioned above and described below:
- content: It is the required parameter which is used to specify the content to insert.
- selector: It is required parameter which specify the elements to be replaced.
Return Value: This method return the selected elements with new content.
Below program illustrates the above function:
This article is attributed to GeeksforGeeks.org