Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

288
Vistas
Bootstrap table .js remove event

I'm trying to delete row using bootstrap table.

Table:

<table id="checkDataTable">
    <thead style="color: #31708f; background-color: #d9edf7 ">
        <tr>
            <th data-field="AssetReference">Referans</th>
            <th data-field="Customer">Müşteri</th>
            <th data-field="ReceiverCompanyName">Alıcı Firma</th>
            <th data-field="Tools" data-formatter="StatuFormatter" >İşlem</th>
        </tr>
    </thead>
</table>
 

StatuFormatter:

function StatuFormatter(value, row, index) 
{
    return "<a  onclick='removeAssetEconomyCheckBillOfLadingRow("+index+")'><i class='fa fa-trash fa-2x' aria-hidden='true'></i></a>";
}

removeAssetEconomyCheckBillOfLadingRow Function:

function removeAssetEconomyCheckBillOfLadingRow(index) 
{
    alert(index);
    $('#checkDataTable').bootstrapTable('remove', {field: '$index',values: index});
}

I can get index value in alert box. But row could not be remove.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Problem is in values: index it may helps you : https://stackoverflow.com/a/64258424/11143288

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda