**Use Of after() and before() Methods In JQuery**
The jQuery after() method inserts content AFTER the selected HTML elements.
And
The jQuery before() method inserts content BEFORE the selected HTML elements.
**Example**
$("p").after("Some text after"); // jQuery after() method
$("p").before("Some text before"); // jQuery before() method
The basic use of after() and before method in Jquery add or remove element in HTML.
0 Comment(s)