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

176
Views
Gm Script para hacer clic en un botón de opción solo lo resalta, no lo hace clic

Tengo un cuestionario (preguntas de Sí/No) en una página web para la que necesito crear un script de mono de grasa, que seleccionará automáticamente todas las opciones de " Sí " (botones de opción con valor sí en la página). Creé el siguiente script, pero cuando hago clic en el botón, solo resalta la opción "sí", pero en realidad no hace clic ni lo selecciona.

A continuación se muestra el código, que creo que es bastante sencillo. ¿Qué podría estar mal aquí?

 var input=document.createElement("input"); input.type="button"; input.value="GreaseMonkey Button"; input.onclick = showAlert; document.body.appendChild(input); function showAlert() { var btns = document.querySelectorAll('input[type="radio"]') for(var i=0;i<btns.length;i++){ if(btns[i].value=="Yes"){ btns[i].checked=true; } } }

solo lo resalta como en esta foto

about 4 years ago · Juan Pablo Isaza
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!