开发者

CSS Button Problem with Enter Key

I made login page with CSS submit button, the problem is I have to click the button (using mouse) and can't use enter key to process my page.

This is my code:

<a onCl开发者_C百科ick="document.getElementById('form').submit();"><div id="loginButton" type="submit">LOGIN</div></a>


Use a normal submit or button[type="submit"].

The latter you can style to look like anything.

Then you don't need to use JavaScript at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜