Remove wrapper and leave just content of tag

//1. For specific id the code is following: $('#id').contents().unwrap(); //2. If you need to upply changes for specific class, code is following: $.each($(".class"), function(){ $(this).contents().unwrap(); });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.