how to delete a row if row having the delete image ,by clicking the image the row should be deleted?
how to delete a row if row having the delete image ,by clicking the image the row should be deleted?
kailasapu
Posts: 7Questions: 0Answers: 0
actually i am using the data table, in this i have two functionalities
1. deleting the row when i click the image delete which is having the row(row having 10 columns, last column is delete image)
2. by clicking the row , i need to some value from the row.
both are completed successfully and individually... problem is
when i use both mixing, when i click the delete image the 2nd function automatically calling, how to prevent this..
this is my 2nd method:
$("#myTable tbody tr").live('click', function(event) {
var aPos = oTable.fnGetPosition(this);
var aData = oTable.fnGetData(aPos);
var gIDNumber = aData[3];
});
and my 1st method is:
$('#myTable tbody td.deleteRow').click(function () {
aPos = oTable.fnGetPosition(this);
oTable.fnDeleteRow(aPos[0]);
});
*****finally after deleting the table is not refreshing....
can u guide me .... plz...
thanks
1. deleting the row when i click the image delete which is having the row(row having 10 columns, last column is delete image)
2. by clicking the row , i need to some value from the row.
both are completed successfully and individually... problem is
when i use both mixing, when i click the delete image the 2nd function automatically calling, how to prevent this..
this is my 2nd method:
$("#myTable tbody tr").live('click', function(event) {
var aPos = oTable.fnGetPosition(this);
var aData = oTable.fnGetData(aPos);
var gIDNumber = aData[3];
});
and my 1st method is:
$('#myTable tbody td.deleteRow').click(function () {
aPos = oTable.fnGetPosition(this);
oTable.fnDeleteRow(aPos[0]);
});
*****finally after deleting the table is not refreshing....
can u guide me .... plz...
thanks
This discussion has been closed.