erikTsomik
asked on
Hide disabled drop down
I need to hide disabled drop down. The problem is I have I have 2 variables if the drop down is disabled i ma using the hidden form variable but the drop down itself need to be hidden
if I do this it probably taking the hidden form variable.
$("#triggerSeed2").parent( ).hide();
the reason I doing it this way because under certain condition the drop down will be disabled, but other fields are still using the value from it. I thought if I disable the drop down and enable the hidden form variable that will work and it does but i need a way of hiding the drop down
if I do this it probably taking the hidden form variable.
$("#triggerSeed2").parent(
the reason I doing it this way because under certain condition the drop down will be disabled, but other fields are still using the value from it. I thought if I disable the drop down and enable the hidden form variable that will work and it does but i need a way of hiding the drop down
ASKER
But I can not hide the disabled drop down
Post your code. There is no reason you cannot hide it. Maybe you are targeting the wrong element.
Here's a simple example.
http://jsfiddle.net/3nq89/
Here's a simple example.
http://jsfiddle.net/3nq89/
To show/hide: document.getElementById("m yCombo").s tyle.displ ay="inline "/"none";
To enable/disable: document.getElementById("m yCombo").d isabled=tr ue/false;
To enable/disable: document.getElementById("m
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Anything other than that I am not understanding.