javascript - jquery table dynamic cell filtering and repositioning -
i have table displays names , each row contains 3 cells.
i filter names , using jquery it.
it works:
1) cells not match hidden script
2) cells match displayed script
3) cells match realigned horizontally, displayed left right continuously.. good
the last thing trying achieve redistribuite matching cells 1 after other, no matter row located before filtering them!
so if row contains 1 match , row below contains 0 matches , row after contains 2 matches, want 3 matches shown in same row!
for example if go here:
and type "a" in search field, 2 results. won't them in same row, after filtering cell "fffaaa" near "aaafff", not below it!
i don't know there's particularly reasonable way tables/table cells. able splice quick jsfiddle replacing table set-width div
, table-cells floated div
s. way hiding other 'cells' automatically re-aligns 'rows'.
Comments
Post a Comment