1
我正在寫一個表格,我希望能夠發佈一個表格內的值,以及獲取表格之外的字符串。這裏是我的代碼表格之外的帖子值
<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(在這種情況下,賽鬆的蜂蜜)
我不確定你是否能夠,但我相信你將不得不使用JavaScript的... – 13ruce1337
使用隱藏的輸入欄:) – SamDeveloper