Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQGRID - Is it possible to change the background color of HTML header text in JavaScript?

Is it possible to change the background color of HTML header text in JavaScript?

Edited: oops - i did forget to add that is it header text in jqGrid.. i'm sorry about that..

like image 444
David Michaeli Avatar asked Feb 26 '23 22:02

David Michaeli


1 Answers

jQuery is not needed, you can do this with regular JavaScript.

document.getElementById("headerID").style.backgroundColor = "#FF0000";
like image 147
Rebecca Chernoff Avatar answered Apr 12 '23 23:04

Rebecca Chernoff