chiprivers Posted July 11, 2007 Share Posted July 11, 2007 Can any one help me with a script that will increase or decrease the value in a form input box each time either a plus or minus charachter is clicked on? Much like what you would have in a shopping cart, a form input box with say a number 1 default in it, you will have a + and - charaters next to the box and if you click on the + the number in the box will increment 1 and if you click on - it will decrement 1. I want this all to work without reloading the page! Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 Wouldn't it be easier to have a drop-down selection box instead? If you want the value to update AS the user is clicking then you're going to need to use Javascript otherwise it's a case of the page refreshing every time they click a button. Quote Link to comment Share on other sites More sharing options...
chiprivers Posted July 11, 2007 Author Share Posted July 11, 2007 A drop down box is one option but for the styling of the page I would prefer the prementioned design. I think it gives it a slightly more professional image and slightly easier functionality for the user. I think javascript is probably going to be the way forward, any javascript experts? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 heh not me... Javascript bears the mark of the devil You're better off making a new post in the Javascript forum. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.