jQuery UI Dialog buttons

Posted by jAndy on Stack Overflow See other posts from Stack Overflow or by jAndy
Published on 2010-05-06T09:42:23Z Indexed on 2010/05/06 9:58 UTC
Read the original article Hit count: 277

Filed under:
|

Hi Folks,

when creating a dialog with buttons like:

buttons:    {
            'button text': function(){                              
                // do something
            },

do I have access to the button within the click event handler?

$(this)

is the context/jQuery object of the whole dialog.

I doubt I have to be such creative as

$(this).find('button').attr(...)

to disabled a button there ?

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about jQuery