문제

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