Select an item in a table. sounds easy enough...

Select an item in a table. sounds easy enough...

I'm sorry but i've been struggling with how to capture the value of some text in a table.  i need to select this value by first finding the string "Project Number" in a simple table and then capturing the value, in this example "1153" as a variable so I can do stuff.  If someone could please help with this its much appreciated.  I'm trying to use parent, next, contains, children... etc.  and not getting it.  -thanks  Dave


html:

<TBODY>


<TR>
<TD vAlign=top noWrap><B class=ms-standardheader>POC</B></TD>
<TD width=10>
<TD vAlign=top></TD>
<TD width="10%"></TD>
<TR>
<TD vAlign=top noWrap><B  class=ms-standardheader >Project Number</B></TD>
<TD width=10>
<TD vAlign=top>1153</TD>
<TD width="10%"></TD>
<TR>
<TD vAlign=top noWrap><B class=ms-standardheader>Study Type</B></TD>
<TD width=10>
<TD vAlign=top></TD>
<TD width="10%"></TD>
</TBODY>

script:



 $(document).ready(function(){

    var text1=   $("B:contains('Project Number')").parent().children:eq(2).text();
alert(text1);
});