I am calling that function every time a value changes in the table by
<td><input type="text" value="0" size = "2" onchange="doAdd(this)" ></td>
Bu the problem is I even want to call that fucntion at the very start of the page it as soon as my table loads beacuse it has some existing values from the database. I tried using Onload on table level but nothing happened.
I want to know what event should I use for this situation and where should I call it.