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

前端 未结 4 781
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 18:14

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 abo

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 18:55

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

    document.getElementById("headerID").style.backgroundColor = "#FF0000";
    

提交回复
热议问题