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

177
Views
i want show two div with same id by click button 3 but it show one div only

i want show div 3 and last div 3 at same time when i click button 3

button for click to show div element

<button  class="single" target="1">1</button>
<button  class="single" target="2">2</button>
<button  class="single" target="3">3</button>

element i want to show

<section>
    <div id="div1" class="target">1</div>
    <div id="div3" class="target">3</div>
    <div id="div2" class="target">2</div>
    <div id="div3" class="target">3</div> 
</section>

jquery code

jQuery('.single').click(function(){ 
jQuery('.target').hide();
jQuery('#div'+$(this).attr('target')).show();
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!