Exclude html contents/classes from text search

Exclude html contents/classes from text search

rkarthickrkarthick Posts: 2Questions: 1Answers: 0
edited May 2014 in Plug-ins

Hi, I have a jquery datatable in my page. When I try to search the table for contents, it matches the html contents as well.
<tr class="odd"> <td class=" sorting_1">data<span class="label label-success">Running</span></td> </tr>
This cell matches 'span', 'label', 'label-success' etc. Is it possible to configure datatables to search only the text/data instead of the html contents?

I tried setting the type to 'html' it didn't work. I use jquery.dataTables.js version 1.9.4

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    This is an error in DataTables 1.9.4 I'm afraid. I'd suggest updating to the current release , 1.10.0, which fixes this error.

    Allan

This discussion has been closed.