Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82512

Avoid search on element values or attributes

$
0
0
I've noticed that the search function not only look for the visible content but also on the attributes of the elements in the table.

Here's a living example of it with a checkbox and its value: (search for "demo", or "second")
http://jsfiddle.net/HEDvf/510/

In my case, i have checkboxes in the datable and they have classes, data-types and values. When the user wants to use the search feature, it also look for all those attributes and that's not really what a filter should use.

Example of my checkbox:
    <input type="checkbox" value="demo" class="lookForThis">

Is there any way to avoid this behavior?

Thanks.

Viewing all articles
Browse latest Browse all 82512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>