Replace One HTML Tag With Another Using jQuery

By February 23, 2016March 20th, 2017Blog, Javascript, jQuery
Allure Web Solutions Code Snippet
$('li').replaceWith(function(){
  return $("<div />").append($(this).contents());
});

 

Mike Doubintchik

Author Mike Doubintchik

More posts by Mike Doubintchik

Leave a Reply