document.querySelector('.car-items-loader').classList.remove('is-active') document.querySelector("#js-load_more_cars_button").querySelector('div').classList.remove('loader'); const html = "
<\/div><\/div>
<\/div>
<\/div><\/div>
<\/div><\/div>
<\/div><\/div><\/section>" // Replace Search Header const node = new DOMParser().parseFromString(html, 'text/html').body.childNodes[0]; document.getElementById("js-cars").replaceWith(node); handleSearchReinit()