I have below table , on button click i want to change the background color of rows where OrderType is 'Special'.
"tblOrder">
Id Name Order Type 1 Gupta Traders Special 2 Shrikant Steel General 3 Payal Furniture Special
| Id | Name | Order Type |
|---|---|---|
| 1 | Gupta Traders | Special |
| 2 | Shrikant Steel | General |
| 3 | Payal Furniture | Special |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Nov 4, 2020, 3:16 AM EST
Ankit KanojiaRank #380 · 6.6K reputationPosted Jan 6, 2021, 2:26 AM EST
fnRowCallbackinbuilt event which does the same, like it will automatically change the background color of row basde on value of cell. And i guess its very easy and less coded pre-defined function of Datatable. For more details you can refer - https://stackoverflow.com/questions/25186921/change-row-background-color-based-on-cell-value-datatableSiddharth GajbhiyeRank #376 · 6.7K reputationPosted Jan 12, 2021, 12:07 AM EST