开发者

jquery modal dialog form [closed]

开发者 https://www.devze.com 2023-02-19 18:45 出处:网络
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, a
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

精彩评论

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