I'm working with some HTML markup that I can't change, and in some instances on particular pages it breaks a layout. What I need to do is remove - using empty() or remove() or some other jQuery function - the tags commented below </div> and <div>.
Can I do this with jQuery? How can I select those two tags?
...
<div class="woocommerce-product-details__short-description">
<p>Text</p>
</div>
</div> // Remove this closing div
<div> // Remove this opening div
<form class="cart" action="example.com" method="post" enctype='multipart/form-data'>
<div class="wc-pao-addons-container">
...