Jump to content

Form text input and multiple input buttons - help?


mmosel

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.