Reputation: 220
I am trying to add HTML tags to bootstrap tool-tip. I tried many ways but nothing worked for me. My current code is:
<a href="#" data-toggle="tooltip" title="<p> My Code </p>" data-placement="bottom"></a>
And jQuery Code:
$('[data-toggle="tooltip"]').tooltip({html:true});
Upvotes: 0
Views: 477
Reputation: 784
You need to use the HTML character codes. So
<p> My Code </p>
becomes
<p> My Code </p>
Upvotes: 1