title: How can I change the background color of a cell in a jqgrid custom formatter?
body: <p>I can change the text color by doing this in jqgrid custom formatter:</p>
  
  <pre><code>function YNFormatter(cellvalue, options, rowObject)
  {
      var color = (cellvalue == "Y") ? "green" : "red";
      var cellHtml = "&lt;span style='color:" + color + "' originalValue='" +
                                  cellvalue + "'&gt;" + cellvalue + "&lt;/span&gt;";
  
      return cellHtml;
   }
  </code></pre>
  
  <p>but I want to now change the <strong>background color of the whole cell</strong> (instead of the text color).</p>
  
  <p>Is this possible?</p>