[英]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 selector to ensure I do not select another link:
我无法确保在选择器中包含“选择”文本以确保我不选择其他链接:
<span class="pickerWrapper">....<a href="...">Select</a></span>
您将需要使用包含选择器 。
$(".pickerWrapper a:contains('Select')");
jQuery(“。pickerWrapper a:last”)应该可以工作
$('.class a:contains("Select"):last')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.