Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 124

Coloring a row depending on a hidden field and an array or db entry.

$
0
0
Hello

I am new to DataTabels and absolut no idea how to solve it ... hope some one can help.

I have a hidden field with lets say rose, ocan, sand .... in it.

Then I have entrys in a DB (provided as array) with two colums thing and color.

So one of the records may be rose ---> #FF0000 (red).

I want everytime when the hidden field contains rose that the backround of the row changes to the color #FF0000 or when it contains ocan its change to color #0033FF (blue) and so on.

But i have no idea how to hook in :-(

THANK YOU !

Viewing all articles
Browse latest Browse all 124

Trending Articles