October 1, 200917 yr Is there an error in here? Because I can't find it. When the web page comes to this point in the code, it says Unkown runtime error. document.getElementById("gameboard").innerHTML = "<tr><td colspan='4'>Final Jeopardy!</td></tr><tr><td><input type='text' id='t1Bet'><input type='button' value='Submit wager'></td></tr>" "gameboard" is just a table.
October 1, 200917 yr Hi dont know much JS but many coding languages wont like Jeopardy! The apostrophe may be the problem Pat
October 1, 200917 yr You have to use it in a function at least anonymous function, something like window.onload = function() { document.getElementById('gameboard').innerHTML = "<tr><td colspan='4'>Final Jeopardy!</td></tr><tr><td><input type='text' id='t1Bet'><input type='button' value='Submit wager'></td></tr>"; } standalone it wont work. Because your code try the implement before page fully loads and can't find the element.
October 2, 200917 yr Nice find, i never knew you could call a function to that. My fix would have been the same, probs wouldn't have known the problem though. I would have done <body onload='functionCall()'>
Create an account or sign in to comment