jQuery writing input button append
<p>I'm writing an input button with the following code:</p>

<pre><code>$("#QnA").append("&lt;input type='button' name='questionSub' value='Save'/&gt;");
</code></pre>

<p>What I would like to do it capture the click function of that new button.
This is what I attempted:</p>

<pre><code>$('input[name=questionSub]').click(function () {
   alert('hi');
});
</code></pre>

<p>This isn't working for me.  Any ideas?</p>
