En primer lugar, esto no es para el foro de html5, es una cuestión básica de javascript.
En segundo, no hace falta ninguna librería, prototype u otra.
Se utiliza el método deleteRow(), y el javascript no lleva más que un par de lineas de código
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript"> //<![CDATA[
function borrarFila(f){
var i=f.parentNode.parentNode.rowIndex;document.getElementById('tablaDatos').deleteRow(i);
}
//]]>
<table id="tablaDatos" border="1" width="40%"> <th align="left" width="60%">Nombre
</th> <th width="40%"> </th>