I have a structure like this
<ul>
<li>
<a>
<img />
<span />
</a>
</li>
<li>
......
</li>
<li>
......
</li>
</ul>
I am using jquery like this#
$("ul#someid").find("li:last > a[name="some.....]
How can i access the img element and the span element within the “a” element like above.
i am using now like this
$("ul#pushedProducts").find("li:last > a[name= <%=PushedProductsParametersMapper.PARAMS_PRODUCTS_INFO%>]").children('span').attr({name:'<%=PushedProductsParametersMapper.PARAMS_PRODUCTS_INFO%>' + pushedProductsTypesCount, id:'<%=PushedProductsParametersMapper.PARAMS_PRODUCTS_INFO%>' + pushedProductsTypesCount , style :'display:none;'});
Take care about quotes next to
name