title: Keep html when filtering jquery response from .ajax
body: <p>I am calling a page that returns data like:</p>
  
  <pre><code>&lt;div id="class"&gt;
      &lt;option&gt;Value&lt;/option&gt;
      &lt;option&gt;Value&lt;/option&gt;
  &lt;/div&gt;
  
  &lt;div id="type"&gt;
      &lt;option&gt;Value&lt;/option&gt;
      &lt;option&gt;Value&lt;/option&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to filter the data so that I can cycle through each one and insert the option values into the correct section drop down list for them.  I even extended the data so that I could try .find() on it, and made it look like:</p>
  
  <pre><code>&lt;div id="class"&gt;
      &lt;div class="options"&gt;
          &lt;option&gt;Value&lt;/option&gt;
          &lt;option&gt;Value&lt;/option&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="type"&gt;
      &lt;div class="options"&gt;
          &lt;option&gt;Value&lt;/option&gt;
          &lt;option&gt;Value&lt;/option&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However, it still does not work.  I only get the text output, and not the html elements.  So my question is, how do I keep the actual html elements when I use the .filter() command?  My current code is below.</p>
  
  <pre><code>$.ajax({  
      type: "POST", 
      url: "searchFunctions.php",
      data: dataString,
      success: function(data) {
          // Create jquery object from the response html
          var $response=$(data);
  
          // Change styles for children
          $response.filter('div').each(function(){
              $("#"+$(this).attr("id")).html($(this).find(".options"));
          });
      }
  });
  </code></pre>
  
  <p>Please note, I did try .text() and .html() at the end of $(this).find(".options") with no luck.  It still only returned the value portion.  But it's weird.  When I used $(this).html() (no .find(".options.")), I could see the  tags, but still not the  tags...</p>
  
  <p>Thanks in advance.</p>
  
  <blockquote>
    <p>Yeah, never even thought about the fact that the browser would drop the option tags due to no select tag...</p>
  </blockquote>