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.
我有一个带有验证组的按钮。
按钮单击事件调用 jquery 函数,因此我可以使用该事件。(不使用 onclientclick)
如何使用事件获取与按钮关联的验证组?
任何意见,将不胜感激。
如果您想在 java 脚本执行之前验证表单,您可以使用以下内容。
function myFunction() { if (Page_ClientValidation(validationgroupname)) { /*do my work here*/ } }