I have a form on my website that does the login. To make the form look better I am using a div for the submit button which uses onclick=”login()”. This is all well an good except for one thing: when you type in your username, hit tab, type in you password, hit enter, hitting enter does not submit the form.
Is there anyway to get the form to submit on enter without writing crazy javascript to watch for a key press? Or better yet, is there a way to style a submit button to look like not a button without using an image?
My button is actually just text that I have styled to look clickable.
Thanks in advance!
Style your submit button to look like plain text: