jquery for table Show entries
$(document).ready(function() {
$('#example').DataTable( {
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
} );
} );
jquery for table Show entries
$(document).ready(function() {
$('#example').DataTable( {
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
} );
} );
get table row data jquery
$("document").ready(function() {
var tb = $('.layui-table:eq(0) tbody');
var size = tb.find("tr").length;
console.log("Number of rows : " + size);
tb.find("tr").each(function(index, element) {
var colSize = $(element).find('td').length;
console.log(" Number of cols in row " + (index + 1) + " : " + colSize);
$(element).find('td').each(function(index, element) {
var colVal = $(element).text();
console.log(" Value in col " + (index + 1) + " : " + colVal.trim());
});
});
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us