I have a table row that is dynamically created, so I have no control to add any ids or classes.
The row can appear in any order in the table. Each row contains only on column (td).
UPDATED 31/08/2012 18:55
Here is a sample of how the html might look
<table id="ctl00_MainContentPlaceholder_ctl00_CourseInfoTextList">
<tr>
<td>
<p>
<span style="font-size:1.1em"><span id="ctl00_MainContentPlaceholder_ctl00_CourseInfoTextList_ctl00_lblCourseInfoTypeText" style="font-weight:bold;">Subject Area</span></span>
<br />
<span id="ctl00_MainContentPlaceholder_ctl00_CourseInfoTextList_ctl00_lblCourseInfoText">BS, AP</span>
</p>
</td>
</tr>
<tr>
<td>
<p>
<span style="font-size:1.1em"><span id="ctl00_MainContentPlaceholder_ctl00_CourseInfoTextList_ctl01_lblCourseInfoTypeText" style="font-weight:bold;">Course Content</span></span>
<br />
<span id="ctl00_MainContentPlaceholder_ctl00_CourseInfoTextList_ctl01_lblCourseInfoText">some more text</span>
</p>
</td>
</tr>
</table>
Is there a way that I can hide the row where ‘Subject Area’ appears?
I may be wrong, but I think I can answer my own question :S
This is a bit more selective and less likely to catch any other instances of ‘Subject Area’ that we actually want.
Discovering the contains function was key here, so thanks guys 🙂