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

111
Views
La función J-query no funciona para todos los botones

código HTML

 foreach (DataRow row in dt.Rows) { sb.Append("<tr>"); foreach (DataColumn column in dt.Columns) { sb.Append("<td>" + row[column.ColumnName].ToString() + "</td>"); } sb.Append("<td style='TEXT-ALIGN: CENTER;'>"); sb.Append("<a id='cmp' class='btn-edit' href=''>"); sb.Append("<button type='button' id='EditRow' class='btn btn-info btn-xs ' style='margin-right: 10px;'>"); sb.Append("Complete"); sb.Append("</button>"); sb.Append("</a>"); sb.Append("</td>"); sb.Append("</tr>"); }

jquery

 $(function () { $('.btn-edit').click(function () { $('#cmp').attr('href', 'AddQuestions.aspx'); }); });

[al hacer clic en el botón completo, se debería abrir otra página, pero solo sucede cuando hacemos clic en el primer botón al hacer clic en el segundo botón, la página simplemente se vuelve a cargar] [1] [1]: https://i.stack.imgur.com/WxvIV. png

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!