Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
How can I remove some empty closing and opening divs?

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">
...
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!