Jump to content


This topic is now archived and is closed to further replies.


Form text input and multiple input buttons - help?

Recommended Posts

Hi all,

I have a question for the pros. In my cart, each item has a checkbox for removal and an input box for changing the quantity. I have several buttons that are all submit buttons handled by JS. All the buttons work, that's not a problem. However, if a user changes the qty amount and hits return or enter, the remove button is used which is not what I want! I would like the update button to be used. I think it's defaulting to the remove button because it's first. Is there an easy way to change the focus of the qty input field so that an enter will automatically update and not attempt to remove?

Thanks for any tips you may have.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.