I have problem when i try to add column into row of table by i know exactly what rows and column to added
I got index of rows and column therefore i know where my data will adding
Example i have a table with 4 rows and 3 columns
and i want add data into rows 2 cells 3
How can do it with Jquery or Javascript by using 2 loop
Here is a sample http://jsfiddle.net/uwYxU/8/
HTML:
jQuery:
or
in jQuery eq(0) returns first element, eq(1) second element and so on, it’s just like arrays, they start from 0.
Edit: response to your comment
you can check if a selector has found anything like this: