Menu
I have a table that gets data added to dynamicaly, rows containing data with the last td containing a buttong with a onlclick to delete the row. The button calls a delete function that takes a int as parama representing the row number. now when i delete the row the row numbers must be adjusted, this i do with a function, but it seems it doesnt work. Any ideas why?
[code=php]var tbl = document.getElementById(“filtable”);
var rows = tbl.getElementsByTagName(“TR”);
var rowcount = tbl.getElementsByTagName(“TR”).length;
for(var i=0;i<rowcount;i++){
rows[i].lastChild.onclick = function(){delFilter(i)};
}