Skip to content

Instantly share code, notes, and snippets.

@kimroen
Created March 2, 2012 14:43
Show Gist options
  • Save kimroen/1958824 to your computer and use it in GitHub Desktop.
Save kimroen/1958824 to your computer and use it in GitHub Desktop.
Forsøk på å endre farge på tooltip ved click
$("#main-button").tooltip();
$("#main-button").click(function() {
$(this).tooltip('hide');
// css-endringer eller sette på ny klasse
$(".tooltip-inner").css('background-color', 'red');
$(this).tooltip('show');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment