Select items by ID that are hidden in datables
Select items by ID that are hidden in datables
Hi,
Great product! Is there a way to select items by id e.g. $("#someid") in datatables that are contained within items that are hidden by a datatable? For example if I have an input field with an id in one of the rows that is hidden by datatables, I want to select that input and set it's value.
I am able to select the correct items using jQuery and giving the results of .fnGetNodes() as the context for the selector. That works. However this seems to be quite slow and I'm assuming that jQuery is no longer able to translate this into a getElementById under the hood. I am merging in ~1500 items by ID into my tables (via ajax) and using the combo such as this is really slow.
$item = $("#someid", dt.fnGetNodes());
Thanks for the great product!
Jon
Great product! Is there a way to select items by id e.g. $("#someid") in datatables that are contained within items that are hidden by a datatable? For example if I have an input field with an id in one of the rows that is hidden by datatables, I want to select that input and set it's value.
I am able to select the correct items using jQuery and giving the results of .fnGetNodes() as the context for the selector. That works. However this seems to be quite slow and I'm assuming that jQuery is no longer able to translate this into a getElementById under the hood. I am merging in ~1500 items by ID into my tables (via ajax) and using the combo such as this is really slow.
$item = $("#someid", dt.fnGetNodes());
Thanks for the great product!
Jon
This discussion has been closed.
Replies
It turned out to be a better design anyway.
Thanks!
Jon