Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }