title: How to access Json return value in popup in jquery
body: <p>This is my Json function. Using doAjax function i access the value from controller and i gives me the value.</p>
  
  <pre><code>    function doAjax(type, url, data, callback) {
      $.ajax({
          type: type,
          url: url,
          data: data,
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (data) {          
              callback(data);           
          },
          failure: function (errMsg) {
              alert(errMsg);
          }
      });
  }
  </code></pre>
  
  <p>here is my jquery code on button click. when i use debugger it have the values.</p>
  
  <pre><code> $('.btn-setting').click(function () {       
      var data = "";
      doAjax("GET", "/Dashboard/OrderDetails/", data, function (result) {
          data = result;
          for (var i = 0; i &lt; 1; i++) {
              var Html = "&lt;ul&gt;&lt;li&gt;&lt;span&gt;Name&lt;/span&gt;&lt;/li&gt;&lt;li&gt;??Name??&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;AirCraft Type&lt;/span&gt;&lt;/li&gt;&lt;li&gt;??AirCraftType??&lt;/li&gt;&lt;/ul&gt;;
              Html = Html.replace("??Name??", data.Title + " " + data.FirstName + " " + data.LastName);
              Html = Html.replace("??AirCraftType??", data.AirCraftType);             
          }
      });
  });
  </code></pre>
  
  <p>and here is my div and i want to show my json value in div popup.</p>
  
  <pre><code>&lt;div class="modal hide fade" id="myModal"&gt;
      &lt;div class="modal-body"&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So please help me to get the values on popup.
  Thanks in advance</p>