
Untitled
By: a guest on
Aug 12th, 2012 | syntax:
None | size: 0.43 KB | hits: 10 | expires: Never
Cant get Bootstrap javascript to work?
<h1>Pages#home</h1>
<p>Find <a id="t" rel="tooltip" title="Click me!">me</a> in app/views/pages/home.html.erb</p>
jQuery ->
$('a#t').tooltip(placement: 'bottom');
$('a#t').tooltip('placement': 'bottom');
if ($('a#t').data('tooltip')) { // check for tooltip data first
$('a#t').data('tooltip').options.placement = 'bottom';
} else {
$('a#t').tooltip({placement: 'bottom'});
}