lightswitch05/table-to-json

Null Value is returned if the table is hidden

Closed this issue · 1 comments

If the table is hidden by "display:none" property then the json value returned is null.

Table To JSON has an option called ignoreHiddenRows which defaults to true. If you want to read a hidden table, then you need to turn this feature off:

var table = $('#example-table').tableToJSON({ignoreHiddenRows: false});

Here is an example of it working with a hidden table: http://plnkr.co/edit/p5lgP90gaoFt2qAcMCIb?p=preview

Please read all the options Table To JSON supports here: http://lightswitch05.github.io/table-to-json/