0
Well, I’m making a game in javascript where I have 100 buttons and I need the value of the button that the user click to be searched to validate whether the user got it right or not, I recommended this function
function minhaFuncao(id){
var alor = documenr.getElementById(id).value()
}
But I have no idea how to use it if there are 100 values and I put an id for each button. I must put the same id ?
Can you display the HTML of one of these buttons? Click on [Edit] and join the question. We can help format the HTML in the question.
– Sergio