fnFilter table row with class name?
fnFilter table row with class name?
Hi, I want to filter table rows that have a class name of 'details'. I looked through the api and noticed the fnFilter. Can I filter the rows? and if so how can I do this. I tried editing the fnFilter but I don't know what to put in for the string since I'm pretty new to jquery.
thanks.
thanks.
This discussion has been closed.
Replies
fnFilter is used on the 'innerHTML' of the table cells, so you don't immediately have access to the TR class name. However, it would be possible to use a custom filtering plug-in (see for example: http://datatables.net/1.5-beta/examples/api/range_filtering.html ) to do example what you are looking for (it's yet to be added to the documentation since 1.5 is in beta - but hopefully not for much longer!).
Hope this helps!
Allan
Allan