如何删除我的表格行 onClick 事件?
var count = 0,
optionsTable = new HtmlTable({
properties: {id: 'optionstable', border: 0, cellspacing: 0, width: "100%"},
headers: ['Name', 'Value', 'Price', 'Action']
}).inject(container);
optionsTable.push(['<input type="text" name="option[0][name]" class="w70">',
'<input type="text" name="option[0][value]" class="w50">',
'<input type="text" name="option[0][price]" class="w50">',
'<a href="javascript:void(0);" class="add_option">Add</a>'
]);
$$('.add_option').addEvent('click', function(){
count ++;
optionsTable.push(['<input type="text" name="option['+count+'][name]" class="w70">',
'<input type="text" name="option['+count+'][value]" class="w50">',
'<input type="text" name="option['+count+'][price]" class="w50">',
'<a href="javascript:void(0);" class="product_remove_option">Remove</a>'
]);
});
$$('.product_remove_option').addEvent('click', function(){
/*What should be here to remove selected table row?*/
});