0
JS question insertRow vs appendChild
In the recent Matrix assignment, I used insertRow() and inserCell() to allow the user to redimension the matrix table. My question is: Out of curiosity, is this better, worse or no different to using appendChild()? Any feedback would be welcome. Mark.
4 Answers
+ 4
Because the row can be completely filled out before being added. It fits the way I think about tables better.
+ 1
Here are some experts talking about it. I always use appendChild.
https://stackoverflow.com/questions/879563
+ 1
Thanks for the interesting link, John.
Out of interest, why do you prefer appendChild?
+ 1
That makes sense. thanks.