Removing a row from a table using javascript
<p>I am using to add a some rows using javascript. I was able to achieve that using:</p>

<pre><code>$('#order_basket &gt; tbody:last').append('&lt;tr&gt;&lt;td&gt;&lt;b&gt;'+Book+
             '&lt;/td&gt;&lt;td&gt;'+Type+'&lt;/td&gt;&lt;td&gt;'+'&lt;span onclick="removeRow()"'+
             'class="label label-important"&gt;Remove&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;');      
        return false;
});
</code></pre>

<p>Now i also want to be able to remove that row using javascript too. In the able code i have a label named as Remove which is calling another function in my javascript that is being used to remove the selected row. However i am unable to achieve that. The code i am using to remove the row is:</p>

<pre><code>function removeRow() {
    $(this).parent().remove();
    return false;
}
</code></pre>

<p>Any help will be appreciated!</p>
