Skip to content
Franky Van Liedekerke edited this page Jun 9, 2025 · 12 revisions

jTable API Reference

jTable is used to develop AJAX-based CRUD (Create/Retrieve/Update/Delete) tables without coding HTML and JavaScript. The only required HTML tag is a simple div element in your page:

<div id="MyTableContainer"></div>

To initialize a jTable instance, you can call the jtable method in the ready event of the document:

<script type="text/javascript">
    $(document).ready(function () {        	
       $('#MyTableContainer').jtable({
            
            // General options come here

            actions: {
                // Action definitions come here
            },
            fields: {
                // Field definitions come here
            }

            // Event handlers...
        });		
    });
</script>

jTable has three types of options:

  1. General options: Define the general behavior of the jTable instance.
  2. Actions: Define how to communicate from the client to the server.
  3. Fields: Define the structure of the record, create/edit forms, and table. A row in the table is called a "record," which must have fields like a relational database table.

NOTE: When you create a jTable instance, a table is created, but no data is loaded into the table. Use the load method to load data. See the Getting Started document for detailed usage.


Complete Reference





5. Events


jTable Documentation

Clone this wiki locally