javascript - Why can't the submit event be triggered here?
我想大声告诉你
我想大声告诉你 2017-05-19 10:37:50
0
3
579


Nothing happens when I click the Button, it feels right

我想大声告诉你
我想大声告诉你

reply all(3)
曾经蜡笔没有小新

Only form has submit event

PHPzhong

Submit can only be triggered when it is written in the form. What he submitted is the form

给我你的怀抱

1. If you use it this way, you need to add a <form></form> tag externally. You can activate submit by pressing Enter, and there is no need to write js.

2. If you don’t want to add a layer of <form></form> tags, then you can listen to the onclick event of the button.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template