... * aria-describedby属性在错误提示元素没有label包裹以及有groups组合的情况下添加,使验证元素对应错误提示; * onSubmit为真时,提交时验证,为否时改用其他情形验证; * onfocusout失去焦点时验证; ...
基于4个网页-相关网页
Next, in the form tag, add the onsubmit="displayName();return false;" attribute.
接下来,在表格标签中,添加 onsubmit="displayName();return false;"属性。
When a user presses the submit button, the code placed in the onsubmit handler is executed before the form is submitted to the server.
当用户按下submit按钮时,在向服务器提交表单之前将执行onsubmit处理程序中的代码。
应用推荐