extract number of A tags using jquery
Posted
by
user1017268
on Stack Overflow
See other posts from Stack Overflow
or by user1017268
Published on 2012-10-24T16:51:32Z
Indexed on
2012/10/24
17:00 UTC
Read the original article
Hit count: 205
jQuery
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;
© Stack Overflow or respective owner