Why won't my JavaScript open this modal box?

后端 未结 4 445
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 22:54

I\'m trying to call up a click element to open up a modal box, and i\'m unsure what I\'m doing wrong.

I\'ve done basic debugging, but I\'m still relatively new to this,

4条回答
  •  猫巷女王i
    2021-01-20 23:50

    I think your problem is this,

    
     

    You have wrap your div with anchor tag with href="". By pressing on div your page is getting refreshed. You need to do this,

      //Add # here
     

    Demo

提交回复
热议问题