wilded
8/13/2018 - 8:30 AM

Append or Replace elements via Class Name in Jquery

jQuery(document).ready(function($) {
    //$( "div.hero-search__content" ).replaceWith( "<h2>New heading</h2>" );
    $( ".hero-search__title" ).append( "<h2>New heading</h2>" );
    $( ".hero-search__title" ).replace( "<h2>New heading</h2>" );
    $("h4:contains('Wrap')").replaceWith("<h4>Gift Message</h4>");
});