Knowledge Walls
Venkatesan
Hyderabad, Andhra Pradesh, India
Passcode:
.replaceWith() in HTML Insertion of JQuery
2964 Views
ReplaceWith Function in JQuery 
Replace selected html tag with another element tag.

Example
   $("#good_div").replaceWith('<div id="parent_tag_div" style="font-size: 40px;">Parent Tag Content</div>');
Working Style 
Source
<div id="good_div">
      Good or Bad
</div>

Output
<div id="parent_tag_div" style="font-size: 40px;">
    Parent Tag Content
</div>
Next Topics
Next lessons of current book.
HTML Insertion of JQuery
HTML Insertion of JQuery
HTML Insertion of JQuery
HTML Insertion of JQuery
Previous Topics
Previous lessons of current book.
HTML Insertion of JQuery
HTML Insertion of JQuery
Form Validation of JQuery
Best Lessons of "JQuery"
Top lessons which are viewed more times.
HTML Insertion of JQuery
HTML Insertion of JQuery
HTML Insertion of JQuery
HTML Insertion of JQuery
Form Validation of JQuery
HTML Form of JQuery
HTML Insertion of JQuery
HTML Insertion of JQuery
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details