title: How to reset a previously selected row and highlight a new row in JQGrid
body: <p>I have a row1 selected and highlighted then am selecting row2 getting highlighted; when i select row2 i want only row2 highlighted with css and row1 should be defaulted or may be for row1 i want to remove css.  Please help</p>
  
  <pre><code>onSelectRow: function(id){
                var rowData = $(this).getRowData(id); 
                var memberId= rowData['memberId'];//replace name with any column
  
                if(id!==lastSel){ 
  
  
                   $(this).find('.ui-state-highlight').css({background:'#80BFFF'});
                   lastSel=id; 
  
                  }
  
          }
  </code></pre>