StickyTableHeaders
StickyTableHeaders copied to clipboard
INPUT in cloned header
To prevent wrong behavior when there are any INPUT elements (eg. checkboxes) in heading cells, please add the following line in base.init:
base.$clonedHeader.find("input").attr("disabled", true);
Wider selector:
base.$clonedHeader.find("input, select").attr("disabled", true);
It worked even better for me.
@arturm11 thanks!
PS. If one does not use this fix, this plugin breaks associated events (that seated earlier) to the input fields
Is this fix can be implement?
I'm using input for filtering at header table, without this fix, the serialize data will be doubled with empty value.
I have made a pull request https://github.com/jmosbech/StickyTableHeaders/pull/126
I have a check box in my header and I have added that line to my downloaded source. I want my checkbox to work even with sticky headers.
But when I check the check box, it works for the first time. But when trying to uncheck, it does not invoke my event handler and ajax call.
base.$clonedHeader.find("input").attr("disabled", true);
Any ideas?
i have the same problem here, it worked in first time, but in the second it double the entries in my link for example test.com?test1=abc&test1=aaa