Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在提交时使用以确保选中复选框,同时验证空字段。这是我的代码: OnSubmit="return checkCheckBox(Agree) & validate();"> 我查看了 W3Schools 和 Google,但找不到我要找的东西。
你可以试试jQuery 的 .submit()函数。