必填字段验证器 [英] Required field validator

查看:112
本文介绍了必填字段验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用必需的字段验证器来验证控件
我有两个单选按钮折扣百分比和折扣金额,还有两个文本框,当我选择一个选项时,相应的文本框不能为空

How can i validate a control using required field validator
I have two radio buttons discount percentage and discount amount and also two text boxes when i select an option the appropriate text box cannot be empty

推荐答案

查看此链接:
http://www.w3schools.com/js/js_form_validation.asp [
Look at this link:
http://www.w3schools.com/js/js_form_validation.asp[^]

And search google for form validation javascript.

Using the form validation methods described in those links will help you to achieve what you want to do.

If you find problems implementing it come back!

Good luck!


使用自定义验证器并编写自己的javascript方法.
use custom validator and write your own javascript method.


这篇关于必填字段验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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