我正在写一个表单,我希望能够发布表单内的值,以及获取表单之外的字符串。这是我的代码
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">A Honey of a Saison</h4>
</div>
<div class="modal-body">
<div>
<img class="pull-left" style="padding-right: 5px" src="images\beer pics\A Honey of A Siason.jpg"/>
<p>
Name: A Honey of a Saison<br>
By: Boulder Beer / Wilderness Pub<br>
Style: Belgian Strong Pale Ale<br>
ABV: 11.50%<br><br>
Price: $5.99
</p>
<p>
Description: <br> Pours a hazed bronze color and light white foam and lace.
Aroma of malty sugar, Belgian yeast, honey sweetness. In the taste, mild herbal bitterness,
sweet malt notes, honey, as advertised, and booze. There are hints of herb, mint, and pepper.
Mostly sweet, some alcohol is noticed, but tastes pretty good. Medium bodied, well carbonated,
loose, smooth feel with a low level of heat. Overall, this was a big sweet saison, as you would
expect from such a name.
</p>
</div>
</div>
<div class="modal-footer">
<form method="post">
<label for="amount">Amount</label>
<input type="number" name="amount" min="0" max="12" >
<button type="submit" class="btn btn-primary">Add to Cart</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
</div>
</div>
</div> <!-- end of myModal -->
我试图发布金额和模式的标题id =“myModalLabel(在这种情况下是一个Saison的蜂蜜)
答案 0 :(得分:0)
您唯一可行的选择是: