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; } });

24th Nov 2020, 11:30 PM
Jose
Jose - avatar
1 Answer
+ 2
player.addEventListener A typo on that line.
25th Nov 2020, 10:15 AM
Ipang