jQuery .click function is not working without a string

后端 未结 1 1352
广开言路
广开言路 2021-01-26 14:37

Link to first question: Ruby on Rails and Jquery: trying to switch characters after submit

I asked this question yesterday, and got what I believe to be some helpful fee

1条回答
  •  太阳男子
    2021-01-26 15:22

    Check your Javascript error console, that's not valid syntax, you need to quote the id for the table.

    var currentPlayer = $('#table').data("current-player");
    

    0 讨论(0)
提交回复
热议问题