Problem with paging
Problem with paging
stefenwiranata
Posts: 5Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
http://jsfiddle.net/stefenwiranata/3ZLth/
please help