javascript - jQuery UI Tooltip won't disappear after click -


$(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); 

i'm using basic js have tooltips enabled on hover. however, if click icon tooltip, remain there until click else. how change code above ?

check out jquery hover() method, has enter , exit handlers: http://api.jquery.com/hover/

you can call open() , close() on tooltip on enter , exit respectively: http://api.jqueryui.com/tooltip/#method-open

http://api.jqueryui.com/tooltip/#method-close


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -