Mogu i da se dodaju i da se brisu redovi u tabeli iz javascripta, jednom kada je dokument ucitan. HTML nije tako "statican", kao sto je bio nekad.
Jedan od linkova gde mozes da vidis kako se to radi:
http://msdn.microsoft.com/libr...orkshop/author/dhtml/dhtml.asp
pa potrazi "How to Build Tables Dynamically".
Problem je u tome sto ovakva resenja rade uglavnom samo na IE, eventualno na Netscape-u 6+, pa ti razmisli da li ti se isplati da koristis tako nesto. Evo i parce koda koje dodaje/brise redove u tabeli (ovo radi samo u IE):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function add_row()
{
var oRow;
oRow = oTable.insertRow();
oCell = oRow.insertCell();
oCell.innerText = "red " + (oRow.rowIndex + 1);
}
function delete_row()
{
var oRow;
var t =oTable.rows.length;
if(t > 0){
oRow = oTable.deleteRow(t-1);
}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<button onClick="add_row()">add row</button> <button onClick="delete_row()">delete row</button>
<BR> <BR>
<TABLE id="oTable" border=1>
<TR>
<TD>prvi red</TD>
</TR>
<TR>
<TD>drugi red</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Never trust an operating system you don't have sources for.