I have the following code:
pfTbl = getEl( “User selected items”)
var firstRowId = pfTbl.firstChild.id;
var firstRow = getEl(firstRowId )
var pastStats = getEl(newTrackId );
var highliteSelected = getEl(newTrackId );
highliteSelected = highliteSelected.nextSibling;
// ** selectedEntry.removeChild(newTrackId ); // Delete row
// This statement fails with error: Type mismatch (usually a non-object value used where an object is required)
// When I comment the statement out, the ‘new/ row is inserted, but it is a duplicate.
// How can I delete the row and re-insert it with ‘updated’ data?
var pp_data_row = document.createElement(“tr”);
pp_data_row.id = “Itemnames_ID”;
pp_data_row.height = “7px”;
pp_data_row.width = “100%”;
if ( highliteSelected ) { pfTbl.insertBefore( pp_data_row,getEl( highliteSelected.id )); }
else { pfTbl.appendChild( pp_data_row ) }
Thanks in advance for your help,
yardman0 ?