title: Get the id of the button which opens the dialog
body: <p>I have a button inside each row of a table generated inside a loop.The button has class <code>click_link</code>.The id will be different for each row. On clicking the button, a jquery dialog is created.I need the id of the button inside <code>click()</code> of dialog buttons,ie click event of Edit button</p>
  
  <pre><code>$("#dialog_loader").dialog({resizable: false,
    height:"auto",
    modal: true,
    minWidth: 500,
    autoOpen:false,
    buttons: {
      "Edit": function() {
        $.ajax({
              url:url1,
              type:'POST',
              data:data1,
              success:function(msg){
                 if(msg)
                 {
                    //alert(msg);
                   //Here I need to get the id of the button which creates 
                 the dialog.That is id of the button with class **click_link**
                 } 
              }
          });
      },
      Cancel: function() {
        $( this ).dialog( "close" );
      }
    }
  });
  
  //click event of button
  $(document).on('click','.click_link',function(){
      $("#dialog_loader").css({'display':'show'});
      $('#dialog_loader').dialog('open');
  });
  </code></pre>