I want to create a very minimal login block and thus wouldn't like to have the "log in" button at all. I would like to have only the username and password fields, and log on by hitting "enter".
I have added display:none
CSS property to the button, but this will stop form from being submitted. What else could be done ?
visibility:hidden
Will work ! Just tried it.$('#login-textfield').keydown(function(e) { if (e.which == 13) { $('#login-button').click(); });
or something