JavaScript onclick requires two clicks

前端 未结 8 1151
执笔经年
执笔经年 2021-01-14 19:33

My problem is that when onclicktriggers the toggleNew function it\'s not executing but when I click the div a second time it\'s execut

8条回答
  •  滥情空心
    2021-01-14 20:22

    May not be the best answer, but the fix was to use inline css by style attribute. Like this:

    click
    content

提交回复
热议问题