title: jQuery remove() within Ajax
body: <p>I am trying to get Ajax to remove an element within that same Ajax page.  I make a call to a document via Ajax with the following code, but it doesn't remove the element:</p>
  
  <pre><code>&lt;input type="text" value="test" name="someel" class="someelement" /&gt;
  &lt;script type="text/javascript"&gt;
      $('.someelement').remove();
  &lt;/script&gt;
  </code></pre>
  
  <p>I am using datatype = 'html' and other jquery stuff works, but it only works when I use things like the live function and I don't believe you can use that for removing elements, but I could be wrong.</p>
  
  <p>Thanks. </p>
  
  <p>EDIT:</p>
  
  <p>Ajax Call:</p>
  
  <pre><code>$.ajax({        
      url: someurl,
      type: 'post',
      data: postvars,
      cache: false,
      dataType: "html",
      success: function (html) {
          $('#somediv').html(html);
      }
  });
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <p>Example: REMOVED URL</p>