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

前端 未结 4 812
爱一瞬间的悲伤
爱一瞬间的悲伤 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

    thanks for you all!! the answers helps me to find the answer.

    var HeaderFontColor = "yellow";
    var HeaderBackgroundColor = "brown";
    $(".ui-jqgrid-sortable").each(function() {
        this.style.color = HeaderFontColor;
        this.style.backgroundColor = HeaderBackgroundColor;
    });
    

提交回复
热议问题