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

124
Views
Our dropdown is tabbable even when not expanded

We want our dropdown to be tabbable once expanded but non tabbable when not expanded. We have tried tabindex="-1" on the content in the expandable div but that made it non tabbable even once expanded. We have no idea on how to to solve this and would be grateful to any tips.

       <div class="container">
            <div class="accordionContent">
                <div class="accordionItem">
                    <button class="itemHeader itemQuestion">
                        Text
                        <span class="itemIcon">
                            <i class="bx bx-chevron-down"></i>
                        </span>
                    </button>
                    <div class="itemContent">
                        <p class="itemAnswer">
                            <button>Example</button>
                        </p>
                    </div>
                </div>
            </div>
        </div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I dont know exactly what you want to do but If you want to showdiv.itemContent with click on the button.itemHeader you can do this :

-set display:none ;for div.itemContent

-use onclick event for button.itemHeader. And call this function :

function myfunction(){ document.getElementsByClassName[0]("itemContent").style.display=block; }

about 4 years ago · Juan Pablo Isaza Report
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!