Saturday, March 28, 2009

[jQuery] Re: trigger a dialog from a click event

Your code looks good:

http://jsbin.com/usobo

but it only allows the dialog to open once. If by chance you're having trouble opening the dialog after it has closed, by clicking the same button:

http://jsbin.com/ayuso

- Richard

On Sun, Mar 22, 2009 at 12:18 AM, phanorcoll <phanorcoll@gmail.com> wrote:

hi im new using jquery..im playing around with it, and i find it
interesting..i was wondering how can a trigger a dialog from a click
event..here is my code:

 $('#btn_delete').click(function(){
   $('#msj').dialog();
});

but its not working. what im i doing wrong?

No comments: