So I've got this popover which is working good, here is the html of the popover:
<div class="popover2" onmouseover="$(this).mouseleave(function() {$(this).hide(); });">
<div class="arrow"></div>
<div class="popover2-inner">
<span class="popover2-title">Popover() 2</span>
<div class="popover2-content">
<ul class="unstyled">
<li><span>$200 Bronze</span><p>2 hrs. drivers training</p </li>
</ul>
</div>
</div>
And I've got this instantiation code:
$('.popover2-test').popover({
placement:'bottom',
template: $('.popover2'),
trigger: 'manual',
animate: false,
html: true,
}).click(function(e) {
e.preventDefault() ;
}).mouseenter(function(e) {
$(this).popover('show');
});
But I want to move the inline onmouseover javascript stuff into the instantiation code. I don't know how to do this. Any help is great, thanks.