title: Why isn't this.parent() defined as a function?
body: <p><a href="http://jsfiddle.net/9TcpB/" rel="noreferrer"><strong>JSFiddle</strong></a></p>
  
  <p>I'm creating a new button element with</p>
  
  <pre><code>$('&lt;button&gt;Remove Entry&lt;/button&gt;', { 'type': 'button', 'class': 'delete_button' });
  </code></pre>
  
  <p>However the neither the <code>type</code> or <code>class</code> attributes seem to be defined, and the console prints an error saying <code>this.parent()</code> is not a function (though I'm positive I enabled jquery)</p>
  
  <p>I'm afraid I've done something simple and stupid, but I can't seem to find anything wrong.</p>