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

392
Views
Remove a class inside the class to prevent to close a modal

I have several modals. Each modal closes when clicked.

Now I want to use <summary> (which opens and closes on click) inside a modal. Example: https://www.w3schools.com/tags/tag_summary.asp

Is it possible to remove a class in some arreas inside the class? So I want to prevent close the modal by clicking in the <summary>.

<div class="close_modal_onclick"> 
    <span> content1 </span>
    <span> content2 </span>
    <span class="do_not_close_modal_onclick"> content3 with <details> </span>
    <span> content4 </span>
</div>
about 4 years ago · Santiago Trujillo
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!