質問

I have several telerik radcomboboxes inside a div with various id's. I want to find all of them and disable them without using those id's like say finding the tag name using javascript. Please help

役に立ちましたか?

解決

Each RadControl renders a specific CSS class identifying the type of the control on the control container element. Additionally the JS object is an expando of the container element - control.

So, you can use this: $('.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:

$('.someContainerDiv input').attr('disabled','disabled');

Change input for whatever the element is, like the <textarea> tag.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top