问题描述
大家好,
我正在使用HTML5所需属性的网站上工作。现在我有两个按钮,一个是提交,另一个是删除(这两个按钮都是asp:按钮控件)现在,当我想要删除记录时,它仍然要求我对一些我不想要的文本框进行验证。是否有类似验证组或其他属性的东西我可以在文本框上应用并仅提交按钮???
Hi all,
i am working on a website where i have used required attribute of HTML5. now i have two buttons one is submit and other is delete (these both button are asp:button control) now when i want to delete the record it still ask me for the validation on some textboxes which i dont want. is there something like validation group or some other property which i can apply on textboxes and submit button only???
推荐答案
<asp:button id="btndelete" runat="server" text="Delete" formnovalidate="formnovalidate" />
formnovalidate适用于我,但需要检查所有浏览器s兼容性。但现在它正在使用mozila和chrome。
the formnovalidate works for me, however need to check on all browsers for compatibility. but for now it is wokring on mozila and chrome.
这篇关于是否有像HTML 5必需属性中的验证组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!