Title: adding Datatable functions to a table
Last modified: August 20, 2016

---

# adding Datatable functions to a table

 *  [tvansant](https://wordpress.org/support/users/tvansant/)
 * (@tvansant)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-datatable-functions-to-a-table/)
 * I’m trying to add Datatable functions to tables on my WP pages. From the docs
   here and on the Datatables.net site it looks like I should just be able to put
   something like
 *     ```
       <script type="text/javascript" charset="utf-8">
       <!--
           jQuery(document).ready(function() {
               jQuery('#my_data_table').dataTable();({
                    bJQueryUI:true, sScrollY:300, bScrollInfinite:true, bScrollCollapse:true })
           } );
       // --></script></p>
       ```
   
 * on the page, but it doesn’t work. I’ve tried it with and without the `<!-- and//--
   >` and I’ve tried putting it into a shortcode instead of on the page. I know 
   datatables _can_ work on my site because there’s a datatable shortcode in contact-
   form-7-to-database-extension plugin that works. Unfortunately, that one is too
   limited for what I need to do.

The topic ‘adding Datatable functions to a table’ is closed to new replies.

## Tags

 * [datatable](https://wordpress.org/support/topic-tag/datatable/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [tvansant](https://wordpress.org/support/users/tvansant/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/adding-datatable-functions-to-a-table/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
