I am trying to make my bootstrap tooltip work with dynamically created content and I was told to use this but it seems to not be placing my tooltips to the bottom what is wrong with my code
The javascript:
$('body').tooltip({
selector: '[rel=tooltip]',
placement: 'bottom'
});
JSFiddle: /
EDIT:
$('[rel=tooltip]')
doesn't work on dynamically added content
I am trying to make my bootstrap tooltip work with dynamically created content and I was told to use this but it seems to not be placing my tooltips to the bottom what is wrong with my code
The javascript:
$('body').tooltip({
selector: '[rel=tooltip]',
placement: 'bottom'
});
JSFiddle: http://jsfiddle/MyxhA/
EDIT:
$('[rel=tooltip]')
doesn't work on dynamically added content
- Try this jsfiddle/VXctp/612 – David Commented Jul 28, 2013 at 20:21
1 Answer
Reset to default 5don't attach that to the body
simply use the selector
DEMO: http://jsfiddle/balexandre/MyxhA/2/
$('[rel=tooltip]').tooltip({
placement: 'bottom'
});