Guest User

Untitled

a guest
Aug 12th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Cant get Bootstrap javascript to work?
  2. <h1>Pages#home</h1>
  3. <p>Find <a id="t" rel="tooltip" title="Click me!">me</a> in app/views/pages/home.html.erb</p>
  4.  
  5. jQuery ->
  6. $('a#t').tooltip(placement: 'bottom');
  7.  
  8. $('a#t').tooltip('placement': 'bottom');
  9.  
  10. if ($('a#t').data('tooltip')) { // check for tooltip data first
  11. $('a#t').data('tooltip').options.placement = 'bottom';
  12. } else {
  13. $('a#t').tooltip({placement: 'bottom'});
  14. }
Advertisement
Add Comment
Please, Sign In to add comment