I do not see a method for dynamically changing a field specification. But if you modify the table, you can simply destroy the old jTable and reinitialize it:
$("#TableContainer").jtable("destroy"); $("#TableContainer").jtable({
If there are several options that will remain consistent across all instances, you can use a variable to store options:
var jtable_options = { title: "My Table Title", fields: {} };
Before initializing jtable, do the following:
jtable_options.fields = { id: { title: 'ID' }, salesperson: { title: 'Salesperson' } ... }; $("#TableContainer").jtable(jtable_options);
source share