Page 1 of 1

Disable or enable button

Posted: Sat Jan 12, 2013 4:57 pm
by Latchezar Mladenov

When I load my startScreen i use this function

document.getElementById("button").disabled = true;

It was working correctly first time when i tested but after that it does not work and when i start testing there is a gray screen.

What is wrong with that function? Is there another solution to disable or enable button?


Disable or enable button

Posted: Sat Jan 12, 2013 7:31 pm
by maxkatz

You have to check in the browser console if there are any JavaScript errors.