特别是RadioButton检查了特定文本框验证火 [英] Particular RadioButton checked Particular Textbox Validation Fire

查看:66
本文介绍了特别是RadioButton检查了特定文本框验证火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有2个单选按钮和4个文本框和1个按钮如果选择第1个单选按钮,则允许第3个和第4个文本框允许为空。(它在文本框1和文本框2上激活验证)如果我选择无线电按钮2然后它允许第1和第2个文本框允许为空(它在文本框3和文本框4上激活验证)



当我点击按钮时它发生了整个事件。请帮帮我。

先谢谢

Suppose I have 2 Radio Button and and 4 textbox and 1 Button If i 1st radio button is select then it allow 3rd and 4th textbox allow to be null.(it fire validation on textbox 1 and textbox 2) and if i select radio buttoon 2 then it allow 1st and 2nd textbox allow to be null (it fire validation on textbox 3 and textbox 4)

its whole happend when i Click on Button .Please help Me.
Thanks in Advance

推荐答案


(document).ready(function (){



if(
(document).ready(function(){

if(


(''#rbt1'')。(''check' ')== true)

{

if(
(''#rbt1'').is(''checked'')==true)
{
if(


这篇关于特别是RadioButton检查了特定文本框验证火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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