title: Extracting Ajax return data in jQuery
body: <p>I have done jQuery and Ajax, but I am not able to get the response into a Div element. This is the code:</p>
  
  <p><strong>Index.html</strong></p>
  
  <pre><code>$.ajax({
      type:"POST",
      url: "ajax.php",
      data:"id="+id ,
      success: function(html){
          $("#response").html(data);
      }
  });
  </code></pre>
  
  <p>It is receiving the response to my <code>&lt;div id="response"&gt;&lt;/div&gt;</code>.</p>
  
  <p>The <code>ajax.php</code> returns following code to the <code>index.html</code> file:</p>
  
  <pre><code>&lt;div id ="one"&gt; OneVal &lt;/div&gt;
  &lt;div id ="sub"&gt; SubVal &lt;/div&gt;
  </code></pre>
  
  <p>Will I able to extract the OneVal and Subval into a variable, and how can I extract "OneVal" and "SubVal", instead of above response?</p>