How to enable a drop down after disabling it?
<p>I am facing a drop down disabling problem here . I have two conditions here, cond1 and cond2 .If its the cond1 i will disable my drop down menu, else i will enable it.</p>

<p>This is what i fished out :</p>

<pre><code>if(cond1)
{
DP1.setAttribute('disabled', 'disabled');
}
else
{
DP1.setAttribute('disabled', false);
}
</code></pre>

<p>The problem is once the drop down gets disabled , its not getting enabled again . For eg if its cond2 , then it must be enabled . What am i doing wrong ? Kindly suggest some solution to this.</p>
