jquery modal dialog form [closed]
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" );
});
精彩评论