Sowmya Sirsi

Sowmya Sirsi

  • NA
  • 173
  • 41.2k

How to change the color of a column text using .js

Jun 30 2021 6:54 AM

Hi Team, 

I have a table data as below, where i would like to change the color of only   <th id ="status">Status</th> in .Js file not in html

        <th style="width:100px;">ApprovalStatus</th>
         <th id ="status">Status</th>
        <th id="edit">Edit</th>
        <th id="approval">Approval</th>

.Js file

if (approveview == true && changestatus == false) {
                             /* $("#status").hide(); */  // I dont want o hide the status just change the color of the status 
                             console.log("print 1");

Can anyone suggest me please.

Answers (1)