How to select this via jQuery (include text in selector)?
What is a safe and reliable way to select the link below? I am having trouble to ensure I include the "Select" text in the select开发者_JS百科or to ensure I do not select another link:
<span class="pickerWrapper">....<a href="...">Select</a></span>
You will need to use the contains selector.
$(".pickerWrapper a:contains('Select')");
$('.class a:contains("Select"):last')
http://jsfiddle.net/WwSNb/
jQuery(".pickerWrapper a:last") should work
精彩评论