是否有像HTML 5必需属性中的验证组? [英] is there something like validation group in HTML 5 required attribute?

查看:83
本文介绍了是否有像HTML 5必需属性中的验证组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用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???

推荐答案

好的我已找到上述问题的解决方案。我在按钮上添加了以下代码。

okay i have found a solution to the above question. i have add the following code on button.
<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必需属性中的验证组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆