简体   繁体   中英

With jQuery UI, how can I check if the tooltip has been enabled or disabled for an element?

Using jQuery UI, I know you can enable tooltips for all elements that have the same class like this:

$('.someClass').tooltip('enable');

and disable them like this:

$('.someClass').tooltip('disable');

How can I check the current state of the tooltips for the 'someClass' elements?

您是否尝试过$( ".someClass" ).tooltip( "option", "disabled" );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM