I am using to add a some rows using javascript. I was able to achieve that using:
$('#order_basket > tbody:last').append('<tr><td><b>'+Book+
'</td><td>'+Type+'</td><td>'+'<span onclick="removeRow()"'+
'class="label label-important">Remove</span></td></tr>');
return false;
});
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:
function removeRow() {
$(this).parent().remove();
return false;
}
Any help will be appreciated!
removeRowfunction ?<span onclick="removeRow()".