Javascript 此标签的正确选择器?
我似乎找不到此标记的正确jquery选择器: HTML: 正确的选择器应该是什么?您可以Javascript 此标签的正确选择器?,javascript,jquery,css,jquery-selectors,Javascript,Jquery,Css,Jquery Selectors,我似乎找不到此标记的正确jquery选择器: HTML: 正确的选择器应该是什么?您可以 $('.DomainDescription').each(function () { var PrintedUptime=$(this).closest('.well-mod').find(".showonline").html(); alert (PrintedUptime); }); 演示:您可以 $('.DomainDescription').ea
$('.DomainDescription').each(function () {
var PrintedUptime=$(this).closest('.well-mod').find(".showonline").html();
alert (PrintedUptime);
});
演示:您可以
$('.DomainDescription').each(function () {
var PrintedUptime=$(this).closest('.well-mod').find(".showonline").html();
alert (PrintedUptime);
});
演示:正确的css选择器是:
.DomainDescriptor~table>tbody>tr>td>.showonline
至少我认为这是正确的。因此,您可以使用:
$('.DomainDescriptor~table>tbody>tr>td>.showonline').each(function(){
alert(this.html());
})
以达到预期的效果。这没有经过测试。正确的css选择器是:
.DomainDescriptor~table>tbody>tr>td>.showonline
至少我认为这是正确的。因此,您可以使用:
$('.DomainDescriptor~table>tbody>tr>td>.showonline').each(function(){
alert(this.html());
})
以达到预期的效果。这没有经过测试。太棒了。我不知道我能做到!太棒了。我不知道我能做到!