2011-02-10 106 views
0

在JQuery中,如何在此示例中獲得所有鏈接的值,如User%(即)User 23 & User 24。使用值獲取鏈接

<TBODY> 

<tr> 

<td class="box6B"> 

<a href="mytestpage.htm#79391606">79391606</a> 

</td> 
<td class="box2B"> 

<a href="mytestpage.htm#79391606">User23</a> 
</td> 
</tr> 

</TBODY> 
<TBODY> 

<tr> 

<td class="boxt7B"> 

<a href="mytestpage.htm#79391607">79391607</a> 

</td> 
<td class="box2B"> 

<a href="mytestpage.htm#79391607">User24</a> 
</td> 
</tr> 

</TBODY> 
.. 

回答

0

取決於你正在嘗試做的,你可以做這樣的事情:

$('a:contains("User")')