我正在使用提交数据到MYSQL数据库的html表单。我需要添加一个按钮,每按一次,文本框中的数字就会增加一个。我的代码如下所示:HTML Form Plus按钮
<label for="htop">Top: </label>
<input type="button" name="decrease" value="-" /><input type="text" name="htop" value="0" />
<input type="button" name="increase" value="+" />
这样做的最佳方法是什么?
你写过任何JavaScript了吗?张贴也是。 – 2012-03-15 13:51:22