简体   繁体   中英

jQuery Tablesorter - How do you disable filter by column?

I am trying to follow this example: ftp://ftp.jax.org/dgatti/ShortCourse2015/webapp/eqtl-viewer/src/static/js/jquery.tablesorter/docs/example-widget-filter.html

however I am not able to disable the search widget for an individual column.

How do I disable the search widget (input) for a particular column in the table?

thanks

Wow, that link is to some site I've never heard of, and that's a really old version.

The most up-to-date documentation can be seen here: http://mottie.github.io/tablesorter/docs/index.html

If you look at the "classes" tab of the filter widget documentation, you'll see that adding a class name of filter-false to the header will disable the input filter for that column.

<th class="filter-false">Header</th>

If you want to hide the disabled filter, then add some additional css:

input.disabled { display: none; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM