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

151
Views
confirmar cambio SELECT con PHP y JS

Tengo 2 archivos, 1 para PHP (html) y 1 para el código JS. Quiero confirmar cualquier cambio en mi SELECT...

PHP:

 <select id="transfer_option" onchange="transfer_select()"> foreach (get_users() as $user){ <option>$user['email']</option> } </select>

y en mi archivo JS:

 transfer_select() { if(confirm('Are you sure ?')){ *ajax code, not important* } }

Pero cuando cambio la opción y cancelo, la opción cambia de todos modos...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use otra biblioteca jquery como una dulce alerta para confirmación

 https://sweetalert2.github.io/
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!