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: 279
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