Highlight specific rows
Highlight specific rows
i am using tablepress plugin on my wordpress website which uses datatables. i have a requirement of highlighting specific rows. my table will be constantly updated and it will always be arranged in the ascending order of the "name" entry. what would be the easiest way to highlight the rows?
as of now i am using this command
[code]
.tablepress-id-14 .row-368 td {
background-color: #CCFF99;
}
[/code]
but the problem i am facing with this is that i manually need to highlight each entry. and moreover if i add a new entry which falls somewhere in the middle of the table (ascending order) it will change the row ids of the rows below and the wrong rows will be highlighted.
i have entered "***" in a field in each row that i want to be highlighted. is there any way to highlight rows only which have *** in them
as of now i am using this command
[code]
.tablepress-id-14 .row-368 td {
background-color: #CCFF99;
}
[/code]
but the problem i am facing with this is that i manually need to highlight each entry. and moreover if i add a new entry which falls somewhere in the middle of the table (ascending order) it will change the row ids of the rows below and the wrong rows will be highlighted.
i have entered "***" in a field in each row that i want to be highlighted. is there any way to highlight rows only which have *** in them
This discussion has been closed.
Replies
Allan
Another option, if the data isn't going to change is to use fnCreatedRow in a similar manner - it will be faster.
Allan
could you please help do the required stuff. i would be more than thankful
my skype - dwrockyyy
Allan
anyways thanks alot for your help. appreciate it.