Problem with paging

Problem with paging

stefenwiranatastefenwiranata Posts: 5Questions: 0Answers: 0
edited September 2013 in General
Hi !!

Sorry for troubling you again

i have table with last column is an element to get entire row data,

when i use paging, just first page that trigger my function , page 2 - 3 - 4 and so on not trigger my function.
but when i disable paging all record trigger my function.

initialisation and function

[code]
var OTkaryawan = $('#table_karyawan').dataTable({
});

$(".select_row").click(function() {
// var row = $(this).closest('tr')[0];
// var aData = OTkaryawan.fnGetData(row);
// alert(aData[0]);
alert('A');
});
[/code]

my table
[code]



NIK
Nama Lengkap
Lokasi Kerja
Departemen
Jabatan
Action



<?php foreach ($master_karyawan as $key => $value): ?>

<?= $value['nik']; ?>
<?= $value['nama']; ?>
<?= $value['lokasikerja']; ?>
<?= $value['departemen']; ?>
<?= $value['jabatan']; ?>
Select

<?php endforeach; ?>


[/code]


please help

thank you

Replies

  • stefenwiranatastefenwiranata Posts: 5Questions: 0Answers: 0
    edited September 2013
    example

    http://jsfiddle.net/stefenwiranata/3ZLth/

    please help
This discussion has been closed.