在引导程序弹出窗口中包含表单? [英] Contain form within a bootstrap popover?
本文介绍了在引导程序弹出窗口中包含表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="container">
<div class="row" style="padding-top: 240px;">
<a href="#" class="btn btn-large btn-primary" rel="popover"
data-content="<form><input type="text"/></form>"
data-placement="top" data-original-title="Fill in form">Open form</a>
</div>
</div>
JSfiddle
我猜我会将表单内容存储在javascript函数中......
I'm guessing that I would store the form contents within a javascript function...
推荐答案
要么替换double引号 type =text
带单引号,赞
Either replace double quotes around type="text"
with single quotes, Like
"<form><input type='text'/></form>"
OR
替换双引号包装数据内容
带有单引号,比如
replace double quotes wrapping data-content
with singe quotes, Like
data-content='<form><input type="text"/></form>'
这篇关于在引导程序弹出窗口中包含表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文