Oktay
Oktay

Reputation: 541

Filter dynamic html table

I'm using jQuery Searchable Plugin to filter data on a table. It works when table is loaded in html. When I create table dynamically with jQuery, the plugin is not working. I tried to reset plugin after creating table but it is still not working. I append <tr> and <td> elements dynamically to the table. After append in the browser source it shows table empty. <tbody id="dataTable"> </tbody>

What should I do in such case when I create elements dynamically? Does not jQuery reach the dynamic data or elements? Or is it about Searchable plugin?

Upvotes: 0

Views: 2038

Answers (1)

Srinivasa Reddy
Srinivasa Reddy

Reputation: 114

I think this plugin will help you

for table search http://datatables.net/examples/data_sources/ajax.html

for table sort http://tablesorter.com/docs/example-ajax.html

Upvotes: 1

Related Questions