PreventDefault at boot

I work with twitter bootstrap and I have this code

$('.addYT').on('click', function(event) { var $this = $(this); event.preventDefault(); }).popover({ placement: 'bottom', html: true, content: function(e) { return $('.YTadd').html(); } });​ 

Everything works fine, but in popover content: there is html code with something like <a href="#"> . I want this to be prevented. But that does not work. Does anyone know how to do this?

+2
source share

All Articles