jsoup - 在 class Y 中具有属性 X 的元素

jsoup - an element with an attr X in a class Y

 <a class="ajaxed nextStation inactive paneLeft" title="Next station" href="somethinf.com"></a> 

我可以通过 jsuop 选择器找到该元素吗?我的意思是 a 属性 title 设置为 Next station 的元素 inactive class ?

尝试

Jsoup.parse(YOUR_HTML).select("a.inactive[title=Next station]");

更多关于 selector syntax