jQuery wrapInner()The jQuery wrapInner() method is used to wrap an HTML structure around the content of each element in the set of matched element. This method can accept any string or object that could be passed to the $() factory function. Syntax: Parameters of jQuery wrapInner() method
Example of jQuery wrapInner() methodLet's take an example to demonstrate the jQuery wrapInner() method. You can also use more than one element to wrap the specified content.jQuery wrapInner() example 2In the above example we have used three tags altogether:
jQuery wrapInner() example 3 Next TopicjQuery focus()
|