开发者

button submit trigger on enter

This is probally small question for a pro.

i want to know if i replace input submit button with button (type=submit), would it still be trigger on enter (keyboard) and if yes, then which browser wont trigger it?

<button type="submit"><span>i was replaced from input button&开发者_JAVA百科lt;/span></button>
 span was added just for css fancy button style


It should be triggered in all standard compliant browsers, since type="submit" creates a submit button:

Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities:


same thing, the button allows you to put content, like text or images

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜