Reputation: 25
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
Upvotes: 0
Views: 1621
Reputation: 368
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(); });
Upvotes: 1
Reputation: 41
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.
Upvotes: 0