remove row when pressed DEL
I want to remove a row when I press del. The best way to do so is to set "display" on "none", but I can't find out how to access the row only.
I've got this atm:
I've got this atm:
obj.setEvent("onkeydown", readChar);
function readChar(e) {
var key = e.keyCode;
switch(key) {
case 46:
answer = confirm("Are you sure ?");
if (answer) {
e.setStyle("display", "none"); // This doesn't work ;)
}
break;
}
}
document.write(obj);
November 6,