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
Comments
Post a Comment