When event A happens I disable a button:
if (document.getElementById('detail_n').checked) {
chkxp.disabled = true; }
But if event B happens I want to re-enable the button:
if (document.getElementById('detail_y').checked) {
chkxp.disabled = false; }
That did not re-enable the button. I tried:
chkxp.removeAttribute('disabled');
That did not work either.
I HAVE LOOKED AT THE OTHER PAGES WHICH PRESENT SOLUTIONS, AND THEY ARE EXACTLY WHAT I ALREADY HAVE, WHICH IS NOT WORKING FOR ME. THAT IS WHY I AM ASKING AGAIN.
The only thing that worked is to re-submit the page. That would be a huge pain for the user, since there is a lot of stuff to fill into that form.
I'm in firefox. Can anyone give me a Javascript solution that does work?