Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace an element with another jquery

$( "#firstElem" ).replaceWith( "<h2>New Content</h2>" );
 
PREVIOUS NEXT
Tagged: #replace #element #jquery
ADD COMMENT
Topic
Name
8+9 =