title: JQuery remove() not working in IE?
body: <p>I am using JQuery to take the text in all labels and add it to the input's placeholder. I am deliberately leaving the <code>&lt;strong&gt;</code> text alone.</p>
  
  <p>I have it working great in Firefox and Chrome, but in IE it stops before the last step of the first label. How can I make this work in IE?</p>
  
  <p>JQuery:</p>
  
  <pre><code>$("li label").each(function() {
      var label = $(this);
      var placeholder = label.contents().get(0).nodeValue;
      label.closest("li").find("input").attr("placeholder", placeholder).val("").focus().blur();
      label.contents().get(0).remove();
    });
  </code></pre>
  
  <p>Example HTML:</p>
  
  <pre><code>  &lt;li&gt;
      &lt;label for="field-1"&gt;My Label&lt;strong&gt;required&lt;/strong&gt;&lt;/label&gt;
      &lt;input id="field-1" type="text"&gt;
    &lt;/li&gt;
  </code></pre>