jquery ui - buttons

jquery ui - buttons

Oi, estou usando o jquery ui, o dialog do jquery ui, e preciso saber como usar os buttons do dialog, preciso marcar o button com uma class, alguem sabe me dizer como....

exemplo:

----

Hi, I'm using jquery ui, jquery ui dialog to, and need to know how to use the buttons of the dialog, I need to select a button with a class, someone can tell me how ....


example:


  1. <script>
    $(function() {
        $( "#dialog-message" ).dialog({
     height: 600,
     width: 720,
     resizable: false,
     modal: true,
     buttons: {
      BUTTON: function() {







  2. // AQUI, COMO SETAR A CLASS DESSE BUTTON ? 
  3. // HERE, HOW TO MAKE A CLASS THAT BUTTON?
        },
     }

  4.     });
  5. });
    </script>


ah, preciso marcar a class dele antes de clicar nele...

----------

it must mark the class before clicking on it ...