When you hit enter it will trigger the function to login like a click….
1 2 3 4 5 6 7 |
$(document).bind('keypress', function(e) { if(e.keyCode==13){ $('#loginbutton').trigger('click'); } }); |