title: get text from jqgrid cell value
body: <p>I have inserted an image and text in jqgrid cells using a formatter as follows:</p>
  
  <pre><code>function myFormatter (cellvalue, options, rowObject)
  {  
        switch(cellvalue){
          case 'Unknown':         newCell="&lt;img src='../../Content/images/ui-flag_green.png' /&gt;"+cellvalue;break;//unknown
          case 'Informational' :  newCell="&lt;img src='../../Content/images/ui-flag_green.png' /&gt;"+cellvalue;break; //informational
          case 'Warning' :        newCell="&lt;img src='../../Content/images/ui-flag_green.png' /&gt;"+cellvalue;break; //warning       
          }                 
      return newCell;
  }
  </code></pre>
  
  <p>I need to check each value of my cell for another operation.So I need to get only the text part of the cell value.</p>
  
  <p>Something like this:</p>
  
  <pre><code>var rows =myGrid.getRowData();
  //for(var i=1;i&lt;=rows;i++)
  for(var i=1;i&lt;=rows.length;i++)
  {
          var rowdata =myGrid.getRowData(i);
          var Val = rowdata.myColumn;    
  
          switch(Val){
          case 'Unknown':         do this 1;break;//unknown
          case 'Informational' :  do THIS 2;break; //informational
          case 'Warning' :        do this 3;break; //warning    
  }
  </code></pre>
  
  <p>The <code>Val</code> obtained is the <code>image</code> but my requirement is the text .</p>