使用JavaScript使RadioButtonList变为只读 [英] make RadioButtonList readonly using javascript

查看:111
本文介绍了使用JavaScript使RadioButtonList变为只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Java脚本将RadioButtonList设置为只读而不禁用它.
所有列表项都应为只读.

How to make RadioButtonList readonly using java script without disabling it.
All list items should be read only.

推荐答案

尝试以下JQuery代码:
Try this JQuery code:


(''#target'').attr(''disabled'', ''disabled'');
(''#target'').attr(''disabled'', ''disabled'');

其中目标"是RadioButtonList的ID.希望对您有所帮助!

where "target" is RadioButtonList''s ID. Hope it helps!


这篇关于使用JavaScript使RadioButtonList变为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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