sDom

sDom

ChapmanChapman Posts: 5Questions: 0Answers: 0
edited December 2012 in General
I want to use 2 tables and possibly 3 or more on one page. I am using appendTo to move the sDom for the first table. Bringing in a second table the first tables, length, Filter, and information share the same class and I see no clear way to select them via CSS so they move into position above the second table.

Does anyone know of a solution to this?

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    If you have an ID on the table (even if you don't actually, DataTables generates one, although its not quite as easy to use), DataTables add the id of `{table_id}_wrapper` (i.e. `example_wrapper` for `#example` id table) to the div wrapper around the whole lot. You can use that to limit the scope of your selector.

    Allan
This discussion has been closed.