extract number of A tags using jquery
- by user1017268
I am working on an enterprise application where I can have several links present in table or none depending on the data.
The links appear in the table and have following code behind them
<td class="Row"><span id='s_3_2_14_0' ><a href='JavaScript:SWETargetGotoURL("/eservice_enu/start.swe?SWECmd=GotoView&SWEView=Active+PO+Serial+View&SWEPostnApplet=Purchase+Order+List+Applet&SWEPostnRowId=1-KPBLOZ","_self")'>2001103009</a></span></td>
I need to find all the A tags present in the page inside SPAN tag
having following text
SWEView=Active+PO+Serial+View&SWEPostnApplet=Purchase+Order+List+Applet
I tried the following expression but it returns 0
$('a[href*="SWEView=Active+PO+Serial+View&SWEPostnApplet=Purchase+Order+List+Applet"').length;