[英]Disable all Radcomboboxes inside a div
I have several telerik radcomboboxes inside a div with various id's. 我在一个具有各种ID的div中有几个telerik radcombobox。 I want to find all of them and disable them without using those id's like say finding the tag name using javascript.
我想找到所有它们并禁用它们而不使用那些id,就像说使用javascript查找标签名称一样。 Please help
请帮忙
Each RadControl renders a specific CSS class identifying the type of the control on the control container element. 每个RadControl都呈现一个特定的CSS类,以标识控件容器元素上控件的类型。 Additionally the JS object is an expando of the container element -
control
. 另外,JS对象是容器元素
control
的扩展。
So, you can use this: $('.common-container-class-name .RadComboBox').each(function() { this.control.disable(); });
因此,您可以使用以下代码:
$('.common-container-class-name .RadComboBox').each(function() { this.control.disable(); });
Not sure what a Rad Combo Box is but it seems like different types of input / text elements so try: 不确定Rad Rad Combo Box是什么,但似乎输入/文本元素的类型不同,请尝试:
$('.someContainerDiv input').attr('disabled','disabled');
Change input for whatever the element is, like the <textarea>
tag. 更改元素的输入内容,例如
<textarea>
标记。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.