Quantcast
Viewing all articles
Browse latest Browse all 82152

Avoid search on element values or attributes

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 82152

Trending Articles