Why <tr> is not removed when click on the No button?
<p>What's wrong with the code?</p>

<pre><code>$('&lt;tr&gt;&lt;td&gt;&lt;input type="button" value="No" /&gt;&lt;/td&gt;&lt;/tr&gt;')
.appendTo('table')
.find('input[type=text]')
.select()
.end()
.find("input[type='text'][value='No']")
.click(function() {$(this).parents('tr').remove();})
</code></pre>
