0

Installing this plugin. The documents say:

 * Disabled by default, to enable add the following section to the footable
 * options:
 *
 *   $('#table').footable({
 *     memory: {
 *       enabled: true
 *     }
 *   });

Where the heck is this section to edit this code to enable? I have been all over the repository and documentation and I still don't have a clue.

This should be an easy one if someone could just point to where it goes...

Thanks!

Tharamis
  • 5
  • 3

1 Answers1

0

You have to select your table with $('#your-table-id') and add the footable plugin to it using to code shown in your question.
You should add the code before your closing bode tag, like this:

  <script type="text/javascript">
    $(document).ready(function(){
      $('#your-table-id').footable({
          memory: {
            enabled: true
          }
        });
    });
  </script>

I assume you have the jQuery Framework and the plugin already included into your page.

Michael Wagner
  • 1,018
  • 8
  • 20
  • Thanks Michael that did it... I have garlic.js installed to cover my form inputs. I was adding this plugin for my inserted rows. I had tried this way before but didn't change the table name. Do you if this plugin can support inserted rows? – Tharamis Feb 01 '15 at 20:38
  • I don't know this plugin, it's best if you test this. If you need more help, it would be helpful if you post your related HTML and javascript code. – Michael Wagner Feb 01 '15 at 20:43