jQuery dialog popup

后端 未结 6 1855
孤街浪徒
孤街浪徒 2020-12-14 07:34

I am trying to get this dialog popup form to show up when this link is clicked but it does not work for me. I\'ve been working on this for the past three hours and this is g

6条回答
  •  生来不讨喜
    2020-12-14 08:33

    Your problem is on the call for the dialog

    If you dont initialize the dialog, you don't have to pass "open" for it to show:

    $("#dialog").dialog();
    

    Also, this code needs to be on a $(document).ready(); function or be below the elements for it to work.

提交回复
热议问题