【发布时间】:2012-04-12 08:48:02
【问题描述】:
有没有办法让最小数字为0,并且不允许用户在点击时低于0?
<form>
<input type="text" name="name" value="0" />
<input type="button" value="up" onclick="this.form.name.value++;" >
<input type="button" value="down" onclick="this.form.name.value--;">
</form>
【问题讨论】:
标签: javascript html input