I have created one dialog box in jquery. and there is one button called 'save'. I need to add one id to this save buttton. How can I achive in this in jquery. This is my code
$(function() {
    $( "#dialog" ).dialog({
         height: 400,
      width: 650,
      modal: true,
      buttons: {
        Save: function() {
          dialog.dialog( "close" );
        }
      },
      close: function() {
        form[ 0 ].reset();
        allFields.removeClass( "ui-state-error" );
      }
    });
});
 
     
     
     
     
     
    