Skip to content

Instantly share code, notes, and snippets.

@suneg
Created August 27, 2012 20:18
Show Gist options
  • Save suneg/3491918 to your computer and use it in GitHub Desktop.
Save suneg/3491918 to your computer and use it in GitHub Desktop.
customize popover template for twitter bootstrap
$('#field1').popover({
title: '',
content: 'That looks like an invalid location',
trigger: 'focus',
placement: 'top',
template: '<div class="popover alert-error"><div class="arrow"></div><div class="popover-inner"><div class="popover-content"><p></p></div></div></div>'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment