title: How to pass array data to jQuery dialog and display?
body: <p>Hello I am trying to pass array data into the jquery dialog box and display. I haven't had much luck with this and Im guessing my whole approach to this is wrong. Any guidance to the right way is much appreciated.</p>
  
  <pre><code>&lt;html&gt;
  &lt;div id="confirm"&gt;&lt;/div&gt;
  &lt;/html&gt;
  
  &lt;script&gt;
  var array_data = ["London", "NewYork", "Miami" , "LosAngeles"];
  
  $('#confirm').html(array_data).dialog({
      autoOpen: false,
      modal: true,
      title: 'Confirmation message',
      buttons: {
            Submit: function () { //Do Something here };
            Cancel: function () { $(this).dialog("close"); }
      },
       width: 850, height: 300
  }).dialog('open');
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm unable to figure out how I would pass the array object to the modal and then print out the array values one by one.</p>