Here in this blog I am going to explain about the JQueryCLONE WITH CHANGINGID, for doing this we have to know about the clone() method so this method used for performing a deep copy of the set identical elements, it is useful for moving copies of same line of paragraph or any type of content to the other location. Syntax for clone() method
As you will see in the script insertAfter() method is used, this is used for inserting the content, specified by the content that is going to be added, after each selected element.
Syntax for inserAfter() method:-
While the text() method is used for setting the text content of the selected elements when it returns thecontent it will return the textonly by excluding the HTML.
syntax used for text() method:-
Below is the line of code that will help you to understand it properly