Your tooltip disappears and flickers because it is what the plugin was designed for, so instead of using the boot plugin itself (for me it would be a pain to change for this task), you can just use its markup and css and rebuild its in jQueryUI. Try this for example:
Js
slide: function(event, ui) { $('.ui-slider-handle:first').html('<div class="tooltip top slider-tip"><div class="tooltip-arrow"></div><div class="tooltip-inner">' + ui.values[0] + '</div></div>'); $('.ui-slider-handle:last').html('<div class="tooltip top slider-tip"><div class="tooltip-arrow"></div><div class="tooltip-inner">' + ui.values[1] + '</div></div>'); }
Using this method, we can rebuild the tooltip on top of each slider handle that uses the same CSS as the tooltip for the bootstrap, as well as our own class, which we can easily modify to accommodate it. For instance:
CSS
.slider-tip { opacity:1; bottom:120%; margin-left: -1.36em; }
Demo , edit here .
source share