i'm trying to add one row each time user click a link - but <table> doesnt want to wark this way - i tried different things but it gave me unknow run time error
the only thing which work is to reload whole table - but that is no solution for me
i cant reload any of the rows (they are part of a form)
that is how it looks like:
[html]<html>
<head>
<title>simple document</title>
<script language="javascript"><!--
//i am using ajax to get extrarow
var extrarow ='<tr><td>simply row</td></tr>';
function addrow(){
//this is wrong!! i know it is
//and i dont know how to repair it
document.getElementById('myTable').lastchild = extrarow;
//any ideas?
}
--></script>
</head>
<body>
<a href="javascript:addrow()"> event with add row</a>
<table id='myTable'><tr><td>existing row</td></tr></table>
</body>
</html>[/html]
i would appriciate any idea
thanks
jx2