Can't add value to a hidden column
Can't add value to a hidden column
I have a column in table that has to be hidden..but when i add row i will need to add data to that as well. Its not happening. Please see example.
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
DataTables live example
@import "/media/css/demo_page.css";
@import "/media/css/demo_table.css";
.hidden {display: none}
$(document).ready(function() {
var oTable = $('#example').dataTable({
bSortClasses: false,
"sRowSelect": "single",
bFilter: false,
bLengthChange : false,
aoColumns: [
/* Name */ null,
/* IP */ null,
/* Username */ null ,
/* Password */ { "bVisible": false }
]
});
$('#example').dataTable().fnAddData([ "name", "1.1.1.3", "username", "password" ]);
var rows = $('#example').dataTable().fnGetNodes();
for(var i=0;i
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
DataTables live example
@import "/media/css/demo_page.css";
@import "/media/css/demo_table.css";
.hidden {display: none}
$(document).ready(function() {
var oTable = $('#example').dataTable({
bSortClasses: false,
"sRowSelect": "single",
bFilter: false,
bLengthChange : false,
aoColumns: [
/* Name */ null,
/* IP */ null,
/* Username */ null ,
/* Password */ { "bVisible": false }
]
});
$('#example').dataTable().fnAddData([ "name", "1.1.1.3", "username", "password" ]);
var rows = $('#example').dataTable().fnGetNodes();
for(var i=0;i
This discussion has been closed.