Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
181
rated 0 times [  184] [ 3]  / answers: 1 / hits: 157581  / 12 Years ago, sun, august 26, 2012, 12:00:00
<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


I'm guessing that I would store the form contents within a javascript function...


How do I contain a form within a bootstrap popover?


More From » jquery

 Answers
14

Either replace double quotes around type="text" within single quotes, Like:


"<form><input type='text'/></form>"

OR


Replace Double quotes wrapping data-content with single quote, Like:


data-content='<form><input type="text"/></form>'

[#83426] Friday, August 24, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jananauticat

Total Points: 1
Total Questions: 105
Total Answers: 95

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
;