我们如何根据单选按钮选择更改可见性。 [英] how the visibility can we change based on the radio button selection.

查看:69
本文介绍了我们如何根据单选按钮选择更改可见性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中我有一个单选按钮组作为taxterms。根据选择,有3项作为

员工,c2c,1099,div应该在下一页中可见。这意味着如果选择了c2c那么应该显示c2c相关的div并且剩余应该是不可见的

in my application i m having a radio button group as taxterms. and having 3 items as
employee,c2c,1099 based on the selection the div should be visible in the next page. that means if c2c selected then the c2c related div should be displayed and remaining should be invisible

推荐答案

你好b $ b

你可以使用jQuery,使用jQuery应用jQuery单击事件然后如果B2C单选按钮将单击然后显示你最新的div并隐藏所有div。



谢谢

Gaurav Dhol
Hi
You can do using jQuery, apply jQuery click event using jQuery and then if B2C Radio button will click then Show the div which you whats and hide all divs.

Thanks
Gaurav Dhol


if (ds.Tables[0].Rows[0]["TaxTerms"].ToString() == ResourceManagementConstants.str_C2C)
              {
                  C2CDiv.Visible = true;
                  TaxTermsDiv.Visible = false;
              }
              else if (ds.Tables[0].Rows[0]["TaxTerms"].ToString() == ResourceManagementConstants.str_1099)
              {
                  TaxTermsDiv.Visible = true;
                  C2CDiv.Visible = false;
              }
              else
              {
                  C2CDiv.Visible = false;
                  TaxTermsDiv.Visible = false;
              }

          }


我得到了答案我也发布了答案......
i got the answer i have posted the answer also...


这篇关于我们如何根据单选按钮选择更改可见性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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