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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -