There is only one V in "getValue()".
.value('D') is supposed to be a blank value in the drop down list which is initially the selected value.
I want to toggle the disabled attribute of the another drop down list as well as change the selected value to 0.
I noticed that I was not referencing the other dropdown list in the code above. I believe i have corrected that issue below but I am still not getting the desired effect. Thank you in advance for the additional help.
- jQuery(function(){
var dd<%=object1.getValue()%> = $("#answerText<%=object1.getValue()%>");
if(!dd<%=object1.getValue()%>.value('D') || !dd<%=object1.getValue()%>.value('Y')){
dd<%=object2.getValue()%>.val(0);
dd<%=object2.getValue()%>.attr('disabled', true);
}
else{
dd<%=object2.getValue()%>.attr('disabled', false);
}