How to open JQuery UI popup onclick

六月ゝ 毕业季﹏ 提交于 2019-12-05 03:08:52

id of element is not supposed to have # in it if you want to use jQuery selector as you used in $("#OpenDialog").click(

Change

<a id="#OpenDialog" href="#">Click here to open dialog</a>    

To

 <a id="OpenDialog" href="#">Click here to open dialog</a>

change the id of the link from #OpenDialog to OpenDialog

The css link and scripts need to go in the head, not the body.

And as others mentioned, also change the link id from #OpenDialog to OpenDialog.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!