• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Hire tech talent
    • Blog
    • Sales
    • Salary Calculator

0

211
Views
Tabla Bootstrap cómo cambiar el valor de la columna por jquery

Estoy usando una tabla de arranque para mostrar mis datos. Usé un formateador de datos en una columna como:

 formatter: function (value, row, index) { var html = $.common.sprintf("<input class='form-control' type='text' id='yqBdItemList[" + index + "].price' name='yqBdItemList[%s].price' value='%s'>", index, value); return html; }

luego usa jquery para establecer el valor, pero no funciona:

 $('#yqBdItemList[0].price').val('1111')

si uso updateCell o updateRow , la columna select2 no será válida y no funcionará

función bootstrap-table onLoadSuccess:

 function onLoadSuccess(data) { $.fn.select2.defaults.set("theme", "bootstrap"); $("select.form-control").each(function () { $(this).select2().on("change", function () { const data = JSON.parse($(this).select2('val')) console.log(data) // $(this).valid(); }) }) $(".check-box").each(function () { $(this).iCheck({ checkboxClass: 'icheckbox-blue' }) }) }

onLoadSuccess no será válido después updateCell o updateRow

almost 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!