2009-09-13, 01:46 PM
document.getElementById(id) gets the element with the specified id. Store it in a variable (say "foo") and you can just do
Code:
foo.disabled = !foo.disabled;
