title: how to get title of the containing Jquery dialog?
body: <p>I need to send the title of the jquery dialog to the server, Is it possible to retrieve it without traversing the DOM and finding the?</p>
  
  <p>I know that (<code>&lt;span class="ui-dialog-title"&gt;&lt;/span&gt;</code>) can be retrieved using jQuery but I wanted to know if there is a better way.</p>
  
  <pre><code> $(c[0]).html(html).dialog({
                  title: "Brief Country List",
                  resizable: false,
                  draggable: false,
                  width: 900,
                  modal: true,
                  autoOpen: true,
                  buttons: {
                      Done: function () {
                          Neptune.BriefCountrySection.SaveCountry();
                      },
                      Export: function () {
  
                          $.ajax({
                              type: 'POST',
                              url: '/Briefs/ExportCsv',
                              data: /*Get the title here*/,
                              dataType: 'JSON',
                              contentType: 'application/json; charset=utf-8',
                              success: function (res) {
                                  if (res.Success) {
                                      var item = ko.utils.arrayFirst(self.Countries(), function (i) {
                                          return i.ListID() == self.SelectedCountryListID();
                                      });
  
                                      if (item != null) {
                                          self.Countries.remove(item);
                                      }
                                  }
                                  else {
                                      Neptune.ShowAlert({ content: res.FriendlyErrorMessage });
                                  }
                              },
                              error: function (jqXHR, status, err) {
                                  Neptune.ShowAlert({ content: status });
                              }
                          });
                      }
                  }
              });
          }
  </code></pre>