Como puedo sacar la información de el campo input cuando se modifica en la tabla

Como puedo sacar la información de el campo input cuando se modifica en la tabla

Link to test case: elmontedesion.con/ficilitophp
Debugger code (debug.datatables.net):
<?php include("modelo/conexion_anywhere.php"); $aa_con = conectar_anywhere(); // Query $aa_consulta = "SELECT * FROM libro_biblia"; // Get Result $aa_resultado = odbc_exec($aa_con,$aa_consulta); ?>

<table id="example" class="display" style="width:100%" >
    <thead>
        <tr>
            <th>Libro</th>
            <th>version</th>
            <th>clave</th>
            <th>Núm Capitulo</th>
            <th>Orden</th>
            <th>Libro Español</th>
        </tr>
    </thead>

    <tbody>
        <?php
            $aa_contador_filas_tabla = 0;
            //Codigo + "<input id='dtsCodigo" + counter + "' name='dtsCodigo" + counter + "' type='hidden' value='" + Codigo + "'>",
            while ($aa_row= odbc_fetch_array($aa_resultado)) {  
              $aa_contador_filas_tabla++;
              $aa_valorIsertar = 'dtsCodigo'.$aa_contador_filas_tabla;
        ?>          
        <tr>

            <td > <?php echo utf8_encode($aa_row["NOMBRE_LIBRO_LIB"]);?></td>   
            <td > <?php echo utf8_encode($aa_row["NUEVO_ANTIGUO_LIB"]);?></td>
            <td > <?php echo utf8_encode($aa_row["CLAVE_LIB"]);?></td>
            <td > <?php echo utf8_encode($aa_row["NUM_CAPITULOS_LIB"]);?></td>
            <td > <?php echo utf8_encode($aa_row["ORDEN_LIB"]);?></td>

            <td ><input type='text' id='<?php echo $aa_valorIsertar;?>' name='<?php echo $aa_valorIsertar;?>' value='<?php echo utf8_encode($aa_row["nombre_libro_completo_lib"]);?>'></td>

       </tr>
        <?php
            }
        ?>
    </tbody>
    <tfoot>
        <tr>
            <th>Libro</th>
            <th>version</th>
            <th>clave</th>
            <th>Núm Capitulo</th>
            <th>Orden</th>
            <th>Libro Español</th>
       </tr>
    </tfoot>
</table>        


<div id="demo">
    <button id="bt_insertar" class="ui-button">Insertar</button>
    <button id="bt_grabar" class="ui-button">Grabar</button>
    <button id="bt_eliminar" class="ui-button">Eliminar</button>        
</div>

Error messages shown: Quiero sacar un dato de la columna 5 que es un input cuando este se modifica
Description of problem: No se como sacar un dato de la columna 5 de una celda especifica cuando este se modifica, los datos se generan sacando de una base de datos por php.

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Where do you want to get the value? You would use .val() generally - but if it's on export you would do something like this.

    If not, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.