开发者

Why can't I use the jQuery Tooltip Plugin on a TR?

http://jquery.bassist开发者_JS百科ance.de/tooltip/demo/

I can't use this on a TR, specifically my selector is:

$(".alignment_tr  td:not('.remove-link')")


I am not sure what you mean in your question. TR elements can have events attached to them, so there is theoretically no obstacle to have tooltips attached on them.

Your selector selects td elements. If you want the tr associated, just call .parent().

Alternatively, use :has() :

$(".alignment_tr:has(td:not('.remove-link'))")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜