0
Why wont my disabled button be effected by my function?
<input type="submit" value="Submit" id="vidEnds" class="btn btn-primary" disabled="disabled" /> var button = document.getElementById("vidEnds") player.addEventListner("onStateChange", function(state){ if (state === 0) { button.disabled = false; } });
1 Réponse
+ 2
player.addEventListener
A typo on that line.