Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Plus-minus buttons


< html >
< head >
</ head >

< body >
< form >
< input type = text name = amount value = 5 >
< input type = button value = "up" onClick = "javascript:this.form.amount.value++;" >
< input type = button value = "down" onClick = "javascript:this.form.amount.value--;" >
</ form >
</ BODY >

</ html >