I've tested jTable in a dummy plugin and it worked showing a blank table with the declared fields (Name
, Age
and RecordDate
).
Issues with your code:
1) The following:
wp_enqueue_script( 'jquery-ui-tabs' );
wp_enqueue_script( 'lfc-ui-js', $plugin_url . 'includes/js/tabs-ui.js', array('jquery'));
Can be declared as:
wp_enqueue_script(
'lfc-ui-js',
$plugin_url . 'includes/js/tabs-ui.js',
array( 'jquery', 'jquery-ui-tabs' )
);
And the same for the script 'lfc-jtable-js'
. Maybe, the one with your code need to be enqueued on footer.
2) Wrap your code with (document).ready
, like so:
jQuery(document).ready(function($) {
$('#FighterTableContainer').jtable({
// rest of the code
});
});