title: How can I filter data returned from jQuery?
body: <p><strong>jQuery code:</strong></p>
  
  <pre><code>$(document).ready(function() {
    $('#s-results').load('get_report1.php').show();
    $('#search-btn').click(function(){ showValues(); });
    $(function() {
      $('form').bind('submit', function() { showValues(); return false; });
    });
  
    function showValues() { 
      $.post('get_report1.php', { name: form.name.value }, 
        function(result) {
          $('#s-results').html(result).show();
        }
      ); 
    }
  });
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;form name = "form"&gt;
     &lt;div&gt;Enter name&lt;/div&gt;
       &lt;input type="text" name="name" id="fn" /&gt;
       &lt;input type="submit" value="Search" id="search-btn" /&gt;
     &lt;div&gt;
        &lt;input type="text" id="se2" name="search22"&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  &lt;div id = "s-results" style="height:50px;"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Up to this the script is running perfectly. Now I just want to filter the returned HTML from the above function again.</p>
  
  <p>For implementing this I have tried this line of code:</p>
  
  <pre><code>$(result).filter('#se2');
  </code></pre>
  
  <p>under the function with the <code>result</code> parameter, but it is not working.</p>
  
  <p>So how can the returned HTML code be filtered?</p>