开发者

jquery modal dialog form [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

Can s开发者_运维百科omeone please help

http://jqueryui.com/demos/dialog/#modal-form

I want onclick event instead of button click , that is i want a link to appear create new user instead of button .

Please help


First add a link to the html

<a id='myLink' href='#'>Click Me</a> 

Second set the onclick function to the link

$( "#myLink" ).click(function() {
                $( "#dialog-form" ).dialog( "open" );
        });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜