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

141
Views
¿Cómo mantener el botón en la web de recarga?

Tengo 2 botones, pero hice este 1 botón de visualización tal vez como el mismo botón de alternancia. Este programa se implementará en CI para insertar datos (como reserva de entrada) y actualizar datos (como cancelar solo actualizar la columna is_booking = 0). Esta imagen de ejemplo .

Por lo tanto, quiero que este botón no cambie al actualizar la web o al recargar. Ayudame por favor :).

 function toggle1(){ document.getElementById("input2").removeAttribute("class"); var x = document.getElementById("input1"); var y = document.getElementById("input2"); x.style.display = "none"; y.style.display = "flex"; } function toggle2(){ var x = document.getElementById("input1"); var y = document.getElementById("input2"); x.style.display = "flex"; y.style.display = "none"; }
 .hidden{ visibility: hidden;
 <!DOCTYPE html> <html> <body> <h2>Button 2 in 1</h2> <button type="submit" id="input1" onclick="toggle1()">Button 1</button> <button type="button" id="input2" class="hidden pucek" onclick='toggle2()'>Button 2</button> </body> </html>

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!