Reputation: 6612
I have this simple button tag:
<button class="toolb">this is a button</button>
This is my code:
$(".toolb").tooltip({ content: "example tooltip!" });
I hover the mouse on the button, but no tooltip is displayed. How come?
Upvotes: 0
Views: 37
Reputation: 1099
Try:
<button class="toolb" title="example tooltip!">this is a button</button>
<script>
$(document).tooltip();
</script>
Upvotes: 1
Reputation: 207901
Your button needs a title attribute to work, even if it's empty:
<button class="toolb" title="">this is a button</button>
Upvotes: 1