私はTwitterのブートストラップで作業しており、このコードを持っています
$('.addYT').on('click', function(event) {
var $this = $(this);
event.preventDefault();
}).popover({
placement: 'bottom',
html: true,
content: function(e) {
return $('.YTadd').html();
}
});
すべて正常に動作しますがpopover content:
、.html のようなコードが含まれてい<a href="#">
ます。preventDefaultにしたいです。しかし、うまくいきません。誰もこれを行う方法を知っていますか?