Script Categories

Buttons Effects >>> Up Down Box .

Allows the user to increase and decrease the value in a textbox by clicking up and down buttons. Useful if you would like to allow the user to quickly modify a value in your form.

Add the below code to the <body> section of your page:

<form> <!--  Visit for full source code
and get more free JavaScript, CSS and DHTML scripts!  -->
      <td rowspan="2"><input type=text name=amount value=5></td>
      <td><input type=button value="&nbsp; up &nbsp;" onClick="javascript:this.form.amount.value++;"></td>
      <td><input type=button value="down" onClick="javascript:this.form.amount.value--;"></td>

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).