highlight in "table_1" all the rows which are present in "table_2"

highlight in "table_1" all the rows which are present in "table_2"

edtlceedtlce Posts: 2Questions: 0Answers: 0

Guys, who knows. I do not understand. Tell me please.
On one page 2 tables "table_1" and "table_2".
How I can highlight in "table_1" all the rows which are present in "table_2"?

Like on a picture.:

Replies

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    Thought this was an interesting question so I put together an example:
    http://live.datatables.net/wosutetu/1/edit

    Basically it gets an array of values from table 2 column 0. Then creates an array of values in table 1 column 0 that are in the first array. Finally it highlights the rows in table 1 that match the second array.

    Hopefully this can get you started. Maybe someone can post a more efficient code.

    Kevin

  • edtlceedtlce Posts: 2Questions: 0Answers: 0

    Got it!
    Thanks for the example.

    When I do, I will publish here what happened. Perhaps someone will help.

This discussion has been closed.