【发布时间】:2015-01-20 00:52:00
【问题描述】:
我需要获取用户选中的复选框值并打印出来。
我目前正在做的事情如下,但我不确定要在表单中编写什么动作脚本
<form id="shop" method="POST" action="">
<section id="latest" class="last clear">
<article class="one_quarter">
<figure><img src="images/g1.jpg" width="215" height="100" alt="">
<figcaption>
Value : $100 <br />
Price : $75.00
<input type="checkbox" name="one" />
<br />
<footer class="more"><a href="#">Read More »</a></footer>
</figcaption>
</figure>
</article>
<article class="one_quarter">
<figure><img src="images/g2.jpg" width="215" height="100" alt="">
<figcaption>
Value : $100 <br />
Price : $82.00
<input type="checkbox" name="two" />
<br />
<footer class="more"><a href="#">Read More »</a></footer>
</figcaption>
</figure>
</article>
【问题讨论】: