<p> <span>Something_1</span> <span>Something_2</span> </p>
$('span').wrapAll('<div></div>');
<p> <div> <span>Something_1</span> <span>Something_2</span> </div> </p>
$('span').wrap('<div></div>');
$('span').wrapInner('<div></div>');
<p> <span><div>Something_1</div></span> <span><div>Something_2</div></span> </p>
<p> <div><span>Something_1</span></div> <div><span>Something_2</span></div> </p>
<div> <p> <span>Something_1</span> <span>Something_2</span> </p> </div>
Login in to like
Login in to comment
or Read more about JavaScript Quizzes
Login in to like
Login in to comment