hello all,
I have a customized advanced edit form that displays a number of resources in drop down lists. I need to enable/disable these drop down lists based on user selections. Ive attempted to do this with jQuery but for whatever reason, when the change event is fired, it does not disable the drop downs.
here is the code:
I know that the event is firing because when I uncomment the alert() functions, I get the alert.
Any thoughts/recommendations are appreciated.
Thanks
Alex
I have a customized advanced edit form that displays a number of resources in drop down lists. I need to enable/disable these drop down lists based on user selections. Ive attempted to do this with jQuery but for whatever reason, when the change event is fired, it does not disable the drop downs.
here is the code:
<script type=
"text/javascript"
>
(
function
($) {
$(
function
() {
$(
'.rsAdvChkWrap'
).hide();
$(
"[id$='_ResActivity_ResourceValue_Input']"
).bind(
'change'
,
function
() {
if
($(
"[id$='_ResActivity_ResourceValue_Input']"
).val() !==
'ILT - Instructor Led Training'
) {
//alert('not equal');
$(
"[id$='_ResCourse_ResourceValue_Input']"
).attr(
'disabled'
,
'disabled'
);
$(
"[id$='_ResLocation_ResourceValue_Input']"
).attr(
'disabled'
,
'disabled'
);
}
else
{
//alert('equal');
$(
"[id$='_ResCourse_ResourceValue_Input']"
).removeAttr(
'disabled'
);
$(
"[id$='_ResLocation_ResourceValue_Input']"
).removeAttr(
'disabled'
);
}
});
});
})($telerik.$);
</script>
I know that the event is firing because when I uncomment the alert() functions, I get the alert.
Any thoughts/recommendations are appreciated.
Thanks
Alex