I've got a form and a text box. That text box is for a number, an inventory. What I want to do is have an image on either side, a decrease and increase. Click the up arrow and in increases the number in the text box. Vice-versa for the decrease arrow.
I can make it work perfectly with a Input type:button, and using the following code in the "onclick":
this.form.[i]textbox[/i].value++;
However, when I want it to run in an IMG tag, it does nothing.
I keep finding articles online about people having problems with it, but no answer to how to fix it. I've tried putting it as calling a function, and wrapping it in a span, a div, and using an anchor with no luck.
Does anyone know how to do what I want? Remember that there are going to be plenty of these on a same page, so as little code would help.
Thank you.
Aqua-Soft Forums