Answer the question
In order to leave comments, you need to log in
How to make a button click on a website press Enter?
Good afternoon, please tell me how can I make the button "Add option value" not clicked with the mouse in the admin panel, but it worked when pressing enter on the keyboard. What exactly to add in the product_form.tpl file so that the button works exactly like this. Opencart 1.5.5.1. Thanks in advance File link: https://yadi.sk/d/4E1Pcoz4YzgVCw
Answer the question
In order to leave comments, you need to log in
The entire form above with this button must be in the tag <form></form>
, and this button must have the type="submit"
. Then pressing enter on the form (as well as clicking on the submit button) will by default be treated as submitting the form.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question