I got the JS to work, but when i click the button it goes straight to the else statement. I think i need to change the IF condition
Here's my html
Closed khoitle closed 8 years ago
One thing that might be helpful is to have the eventListener, outside the function. Or to pass a reference to your function, as the second argument to the event listener...
i.e:
function newRound() {
}
$("button").on("click", newRound)
also, I don't think a button
can have a value, maybe you want to grab the input
's value...
I'm not sure how to do that.
I got the JS to work, but when i click the button it goes straight to the else statement. I think i need to change the IF condition
Here's my html
hey @KhoiLe89 looks like the html
did not come through.... mind posting again
html posted on slack. its not showing up in here for some reason.
@KhoiLe89 how are you doing on this issue? any progress?
going to go ahead and close this since we talked yesterday about this, feel free to reopen if issue persists
Hey, I'm trying to figure out how to store a button value, and if it equals the sequence index, it'll continue the game. If not, then it'll just prompt "Try again."
Here is my code.