.unwrap() Method

Syntax

.unwrap()

Description

.unwrap() method is contrary to the wrap method and removes the parent element which is around the selected element.

Example Code

Result:

Text1
Text2



Ask Questions

Ask Question