title: jquery remove not removing
body: <p>so I've got this form:</p>
  
  <pre><code>&lt;form id="imageinputpopup" class=suggestionsubmit style="display: none"&gt;
      &lt;span&gt;Add a thing!&lt;/span&gt;&lt;br/&gt;
      &lt;label&gt;url: &lt;/label&gt;&lt;input name="imageurl" type="url"&gt;&lt;br/&gt;
      &lt;label&gt;file: &lt;/label&gt;&lt;input name="imagefile" type="file"&gt;&lt;br/&gt;
      &lt;input type='hidden' name='schoolid' class="schoolid"&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and this click handler:</p>
  
  <pre><code>$(".allow-submission").live('click', function(){
      if($(this).attr('inputtype')=="colorpicker"){
          ....
      } else if($(this).attr('inputtype')=="image"){
          remove_hidden("#imageinputpopup");
          add_fieldname($(this), $("#imageinputpopup"));
          $("#imageinputpopup").dialog();
      } ....
  });
  </code></pre>
  
  <p>remove_hidden looks like:</p>
  
  <pre><code>function remove_hidden(element){
      alert($(element).children('.fieldname').length);
      $(element+'.fieldname').remove();
      alert($(element).children('.fieldname').length);
  }
  </code></pre>
  
  <p>and add_fieldname looks like:</p>
  
  <pre><code>function add_fieldname(element, addto){
      var elementname = document.createElement('input');
      elementname.type = 'hidden';
      elementname.name = 'fieldname';
      elementname.value = element.attr('fieldname').replace(' ', '_');
      $(elementname).addClass('fieldname');
      addto.append(elementname);
  }
  </code></pre>
  
  <p>as I expect, with each click, a tag like this is added:</p>
  
  <pre><code>&lt;input type="hidden" name="fieldname" value="mascot_image" class="fieldname"&gt;
  </code></pre>
  
  <p>but remove_hidden isn't removing!
  I know the selector is right because the alert is exactly the number of these input tags, but they're just not getting removed. Why? I also tried <code>$(element+).remove('.fieldname');</code> and that didn't work either.</p>