how to get match (id) by jquery I want to get (id) in (href) Between (span)
If the code here
HTML
<table>
<tr>
<td class='zero'>
<span>
<a href="http//google&id=222.com">123</a>
<a>hgi</a>
</span>
<span>
<a href="http//google&id=111.com">123</a>
<a>hgi</a>
</span>
<span>
<a href="http//google&id=333.com">123</a>
<a>hgi</a>
</span>
</td>
</tr>
</table>
jquery
$(".zero span").each(function(){
$(this).find("a").attr("href").match(/id=/);
});
but Error >_< why ? and how ?
i want
id=222
id= 333
id= 111