I have two buttons one with id=enterToSubmit and other with id=clickToSubmit. When a user hit the enterkey, I want enterToSubmit button to submit form
not the clickToSubmit button.
On the same page, I have a textbox id=title, and on Page Load I hide enterToSubmit button, until user enters something in the textbox, then users can hit Enter key to submit form.
How do preven clickToSubmit button to submit when users press Enter key?