Delete row using button dropdown inside table
Delete row using button dropdown inside table
All
On the table we have a dynamic drop down menu that is generated for the last column on each table row
[code]
"" +
' Delete' +
"" +
[/code]
In the js we have
[code]
$(".btnDelete").live('click',function() {
var sData = oTable.fnGetData( this.parentNode.parentNode.parentNode.parentNode);
});
[/code]
When this fires the table does not return the row that the button was clicked from? Does anyone have an example of this?
On the table we have a dynamic drop down menu that is generated for the last column on each table row
[code]
"" +
' Delete' +
"" +
[/code]
In the js we have
[code]
$(".btnDelete").live('click',function() {
var sData = oTable.fnGetData( this.parentNode.parentNode.parentNode.parentNode);
});
[/code]
When this fires the table does not return the row that the button was clicked from? Does anyone have an example of this?
This discussion has been closed.