开发者

button submit trigger on enter

开发者 https://www.devze.com 2023-02-08 11:30 出处:网络
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

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

精彩评论

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