Bootstrap tooltip not working in chrome

≡放荡痞女 提交于 2019-12-11 13:53:33

问题


Bootstrap Tooltip not working in chrome, but working fine in firefox.

<script type='text/javascript'>
 jQuery(document).ready(function () {
 if ($("[rel=tooltip]").length) {
 jQuery("[rel=tooltip]").tooltip({
placement: 'right',
trigger: "hover"
});
 }
});
</script>

And also the placement is not working correctly in firefox, even after defining as right, its showing only on top.


回答1:


You need to update your jQuery to at least 1.7 because it looks like bootstrap 2.2.1 is using .on().

Look at your browser console, it is throwing an error

Uncaught TypeError: Object [object Object] has no method 'on'



来源:https://stackoverflow.com/questions/18372632/bootstrap-tooltip-not-working-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!