innerHTML isn't working with getElementsByClassName

后端 未结 2 417
傲寒
傲寒 2020-12-20 05:43

I\'m just a beginner. And I\'m trying to use innerHTML. I think I wrote proper code, but it doesn\'t work. When I click the trigger, the page becomes white and

2条回答
  •  情歌与酒
    2020-12-20 06:27

    the className 'open' seemed to the keyword of javascript. I changed the className from 'open' to 'openThis'and that came to be a solution of the problem.

提交回复
热议问题