load
method is used when you want to retrieve data to your table from server. If you want to add data by hand then addRecord
is the right method to use. However: by default, jtable tries to add data also to server. If you don't have your server configured properly, then addRecord may fail too.
In this, if you just want to add data manually to the client side, provide addRecord
with clientOnly
parameter:
$('#jt').jtable('addRecord', {
record: {
a:'aaa',b:'bbb'
},
clientOnly: true
});
Full working demo: JSFIDDLE