I have the following JavaScript to disable a dropdownlist in a ASP.NET page , which gets called when I click a button.
function disableDropDown(DropDownID)
{
document.getElementById(DropDownID).disabled = true;
return false;
}
I wanted to use the same button to toggle between enable and disable for that dropdownlist. How do I do this?