开发者

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

开发者 https://www.devze.com 2023-03-13 09:09 出处:网络
http://jquery.bassist开发者_JS百科ance.de/tooltip/demo/ I can\'t use this on a TR, specifically my selector is:

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

精彩评论

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