What about options table without “value” field? or the table has more then two filelds. How to fill selectbox with options from that table:
var keydiscs =
[
{ “id”:“1”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“2”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“3”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“4”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“5”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“6”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“7”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“7”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{ “id”:“9”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”},
{“id”:“10”, “serialnumber”:“disk2015-07-08”, “key”:“1”, “keytype”:“1”, “creator”:“1”, “shredder”:“2”}
];
How to output any field from this table direct to selectbox in datatable?