function enableElement(elem) { if (currentEnabled) { currentEnabled.disabled = true; } elem.disabled = false; currentEnabled = elem; }
Comment