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

174
Views
quiero mostrar dos div con la misma identificación haciendo clic en el botón 3 pero solo muestra un div

quiero mostrar el div 3 y el último div 3 al mismo tiempo cuando hago clic en el botón 3

botón para hacer clic para mostrar el elemento div

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

elemento que quiero mostrar

 <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>

codigo jquery

 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!