In a table I have a <td> whose html is either True or False. If the value is False then hide the parent.
HTML :
<tr>
<td class="IsRequired" align="left" valign="middle" style="width:3px;">False</td>
</tr>
Query :
$('.IsRequired').html("False").parent().hide();
This hides all the <td> whose class is “IsRequired“
Please advice.
Try this:
Working example here: http://jsfiddle.net/95WLt/2/