javascript - Dynamic Table Row Deletion Problem -


I am creating a dynamic table via javascript. I'm not taking lines and columns from the user and create the table. The second time the user logs in, I am removing all existing rows and creating new lines. Everything is working fine, but when I'm using the comment code, it does not work, while someone else is doing fine. Does anyone tell me what is the reason behind this ??

// Delete the previous lines: -

  for (k = tblObj.rows.length; k & gt; 0; k--) tblObj.deleteRow (k -1);   

The above argument is working fine but why is not working under one ??? (

The tblObj.rows.length value is calculated for each brush execution, And the array is decreasing every time.

Try

  var len = tblObj.rows.length; For (k = 0; k    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -