jQuery insertAfter doesn't work in some situations
<p>I want to add a hidden input after some element.
I am using this code:</p>

<pre><code>$("&lt;input type="text"&gt;").insertAfter(".addProduct");
</code></pre>

<p>It doesn't work. But if I replace  to  it works.</p>

<pre><code>$("&lt;span&gt;ddd&lt;/span&gt;").insertAfter(".addProduct");
</code></pre>

<p>It works.
Help me.</p>

<p>Thank you.</p>
