jQuery <input> element problem with onclick attribute
<p>I want an  element with an onclick attribute. When I use jQuery, it doesn't seem to work. Here is my code:</p>

<pre><code>$("h1").append($("&lt;input&gt;", {type: "text", onclick: "alert();"}));
</code></pre>

<p>The following code <strong>does</strong> work:</p>

<pre><code>&lt;input type="text" onclick="alert();"&gt;&lt;/input&gt;
</code></pre>
