大佬教程收集整理的这篇文章主要介绍了jquery – 在引导式popover中使用交互式元素,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有任何示例,教程或源代码,我可以看看在引导Popover中使用任何类型的交互性的东西?
这是我如何设置popover:
this.commentLink.popover({ trigger: 'manual',placement: 'right',html : true,content: function () { return $('#commentPopout').html(); } }).popover('hide'); //jquery.on won't work here so we use live $('#btnSubmitComment').live('click',this.proxy(this.commentSubmitClick));
那么我正在做这个来成功地显示它:
this.commentLink.popover('show');
这是按钮点击功能:
commentSubmitClick: function(E){ console.log($('#txtComment').val());//always shows default text regardless of what I've actually typed in the field }
var popover = this.commentLink.data('popover').tip();
注意方法tip()而不是$ tip。
以上是大佬教程为你收集整理的jquery – 在引导式popover中使用交互式元素全部内容,希望文章能够帮你解决jquery – 在引导式popover中使用交互式元素所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。