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

134
Views
Enlace que selecciona uno de los botones

¿Es posible seleccionar uno de esos 3 botones con un enlace URL? Abro el enlace y ya se ha hecho clic en uno de los botones.

¿Necesito agregar un script específico?

 <button id="uno" class="tablinks" onclick="openCity(event, '1')"> one </button> <button id="dos" class="tablinks" onclick="openCity(event, '2')"> two </button> <button id="tres" class="tablinks" onclick="openCity(event, '3')"> three </button>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Sí, es posible. ¿Está seguro de que desea emitir un button click o simplemente desea invocar a openCity con algunos argumentos? Si es así, en su JavaScript, puede escribir:

 window.onload = function() { openCity(3); } function openCity(buttonNum) { console.log(buttonNum); // '3' }

Si desea emitir un clic de botón, puede intentar:

 window.onload = function() { const buttons = document.querySelectorAll('.tablinks'); const firstButton = Array.from(buttons)[0]; firstButton.click(); }
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!