Adding class to tr with nested divs
===

I am trying to use jquery to add classes to tr .inside the table with class name .flexme1

I tried the various options below but didnt seem to work..

  

      //jQuery("div.flexigrid > table.flexme1 > tr").addClass("cal");
    
    or
       
            jQuery("div.flexigrid > table.flexme1 > tr").addClass("sev1");
      or 
            jQuery(".erow").addClass("sev2");
       or
            jQuery(".flexigrid > tr").addClass("sev3");
       or
            jQuery(".flexigrid >tr").addClass("sev4");
       or
            jQuery(".flexigrid >tr").addClass("sev5");

   


I would like the tr to have the class="somename" added to it. 
  

    <div class="flexigrid">
      ..< some other divs>...<<table> ..</table></div>
    ... <some other divs>...<table>..</table></div>
    ---
    <div class="bDiv" >
       <table cellspacing="0" cellpadding="0" border="0" class="flexme1" >
          <tbody>
             <tr  class="sev1">
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr class="erow"  class="sev1">
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">1</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr   class="sev3">
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr class="erow" >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">1</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">BM1M</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr class="erow" >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">4</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">BM1N</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr class="erow" >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
             <tr class="erow" >
                <td align="left" abbr="InstanceDisplayName8">
                   <div style="text-align: left; width: 190px;">undefined</div>
                </td>
                <td align="right" abbr="severity" class="sorted">
                   <div style="text-align: right; width: 40px;">&nbsp;</div>
                </td>
                <td align="right" abbr="Impact">
                   <div style="text-align: right; width: 40px;">0</div>
                </td>
                <td align="right" abbr="occurrencecount">
                   <div style="text-align: right; width: 40px;">undefined</div>
                </td>
                <td align="left" abbr="NotificationID">
                   <div style="text-align: left; width: 100px;">Host</div>
                </td>
                <td align="left" abbr="Name">
                   <div style="text-align: left; width: 120px;">Down</div>
                </td>
                <td align="right">
                   <div style="text-align: right; width: 130px;">undefined</div>
                </td>
             </tr>
          </tbody>
       </table>
       <div class="iDiv" style="display: none;"></div>
    </div>


    </div><!-- end of div>