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

264
Views
ajax: por qué onclick no funciona con casillas de verificación

Actualmente estoy creando tablas y casillas de verificación usando comunicación ajax.

Después de que se creó, se confirmó que la función de la casilla de verificación funcionaba normalmente. Incluso si incluyo la casilla marcada al crearla, la función onclick no se activa.

 success:function(data){ for (var key in data) { feature = data[key] head = feature[0].split(" ") tail = feature[1].split(" ") type = feature[2] name = feature[3] $('#pharmacophore_table').append("<tr>" + "<td>" + name + "</td>" + "<td> <label><input type='checkbox' name='ligand_feature' onclick='show_ligand_feature(this, " + '"' + feature + '"' + ");' ></label>" + "</tr>"); $("input[name='ligand_feature']").attr( "checked", true); } }, error:function(data){ alert(data.status) }

¿Como puedo resolver esto?

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

0

Lo resolví.

Simplemente agregue un evento de clic

 complete: function(){ var chck = document.getElementsByName('ligand_feature') for (var l=0; l<chck.length; l++){ chck[l].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!