Input button onClick remove closest div
<p>Erm, why this don`t work, iv used similar code like this for my site many times..butnow dont work..</p>

<p>HTML</p>

<pre><code>&lt;div&gt;&lt;span&gt;a&lt;/span&gt;&lt;input type='hidden' /&gt; &lt;input type='button' onClick='Remove(event)' /&gt;
</code></pre>

<p>JQuery</p>

<pre><code>function Remove(e){
e.preventDefault();
$(this).closest('div').remove();
}
</code></pre>

<p>Looks like $(this) is not my button. I tested with alert($(this).val()) and nothing heppend.</p>

<p><img src="http://i.stack.imgur.com/j631Z.png" alt="enter image description here"></p>
