I have written built-in column filtering plugin for datatables and I have small trouble,
I have created text inputs in each column footer and now - on keyup I want to catch them indexes and then use it when filtering.
I'm getting parent column index by following line in my code:
var visIdx = $(this).parent().index();
It's returning properly index only when ALL columns are visible, but when one of them is hidden, then following columns returning bad indexes.
It causes that when some of columns are hidden filtering is applying to bad columns
There is my full code on fiddle: http://live.datatables.net/pulewemu/3/edit?js,console,output