次のように、アンカー要素をクリックするとブートストラップポップオーバーが表示されます。ここで私は、テキストボックスの値を設定したいブートストラップポップオーバー内にテキストボックスの値を設定する方法
のjQuery
$("[data-toggle=popover]").popover({
trigger: 'click',
placement: "top",
html: true,
content: function() {
return $('#popover-content').html();
}
});
HTML
<div id="popover-content" class="hide">
<div class="form-group">
<input class="form-control" id="txtContent" type="text" />
<button id="btnOk" type="button" class="btn btn-default">
<span class="glyphicon glyphicon-ok"></span>
</button>
<button id="btnCancel" type="button" class="btn btn-default">
<span class="glyphicon glyphicon-remove"></span>
</button>
</div>
</div>
<a href='#' class='btn-link' data-html='true' data-toggle='popover'>Sample text</a>
アンカー要素のテキストと同じにポップオーバーの中にある(テキスト)(すなわち、 'サンプルテキスト' )。誰かが私にそれをどうすればいいのか教えてくれますか?ドキュメントとして
完璧に男!どうもありがとうございます。あなたの助けに感謝 ! – Prabi