Skip to main content
Inspiring
June 13, 2010
Question

Coldfusion javascript form control to + and - the value in an <input>

  • June 13, 2010
  • 1 reply
  • 936 views

So whenever you output the contents of the shoppingCart on screen, you provide an <input> for the user to alter QTY if necessary on each row.

For my v2.0 shopping cart, I'm going to employ a ram based structure to hold the cart. Is there a javascript control that can dynamically change the value in a form's <input> tag ? For example on each row of the RAM based cart, I'd like + and - controls that can change the QTY value in RAM. Is this possible ?

Then I could do without the update cart button.

This topic has been closed for replies.

1 reply

Inspiring
June 13, 2010
Is there a javascript control that can dynamically change the value in a form's <input> tag ?

Yes there is.

You should be able to suss it out with a small bit of investigation/research/experimentation.  I recommend googling "form javascript" as a good place to start.

--

Adam

Inspiring
June 14, 2010

I did go and look on the web first, but couldn't get the correct search term - just lots of form related stuff but nothing to do with what I needed.

I'll have another look.

So from your comments, it IS possible ... which is great!

Inspiring
June 14, 2010

I did go and look on the web first, but couldn't get the correct search term - just lots of form related stuff but nothing to do with what I needed.

If I just google for your exact question "Is there a javascript control that can dynamically change the value in a form's <input> tag", the second match gives you most of the info you need!

:-/

--

Adam