Select items by ID that are hidden in datables

Select items by ID that are hidden in datables

jkraghjkragh Posts: 2Questions: 0Answers: 0
edited May 2011 in General
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

Replies

  • jkraghjkragh Posts: 2Questions: 0Answers: 0
    I ended up going with a solution where I merge one large chunk of html rather than merging the large # of elements by id.

    It turned out to be a better design anyway.

    Thanks!
    Jon
This discussion has been closed.