$('#form').submit(function(event) {
});
When user submits the form by click <input type="submit" />
,it should be <input type="submit" />
,
when user submits the form by pressing Enter
in a <input />
,it should be that <input />
I tried event.target
,but it's wrong.