After returning the jquery-Jtable result to the client, create the necessary fields in the table tag, but I want to define css for the last column of the table or my last field in the JQuery Jtable parameters. I mean the "status" column has a background that:
if status==1 bgcolor:red , if status==2 bgcolor:green , if status==3 bgcolor:yellow ,
so I wrote this code:
fields: { Status: { title: 'RequestStatus', width: '4%', display: function( data ) { ??? } } }
source share