how can i insert data into a specific position at table column in html?

Sasanka

New member
Hi there! that's a tough job. Normally we can insert values manually in a table, but , Your query sounds a bit challenging. First of all, to take whatever the user enters as input, we have to code a small JavaScript. And while creating the table, just give the values of the first cell value as something like "row1column1" and fill the table accordingly. I mean, look here:

<tr>
<td> row1column1</td><td>row1column2</td>......so on
until
<td>rowNcolumnN</td>

Now , for the javascript part, prompt the user to let him choose where he wants the data to be entered. If he enters 1, then put the variable row1column1 in action . That is something like
row1colum1 = what user enters

do the same for all cells


ALL THE BEST
 
I mean that i'm retrieving data from my database
and i must insert theses data into certain column, because the cell position of the data depends on the user input if he chooses 1 then data must be inserted at cell 1 ,if he chooses 2 then the data must be at cell 2,and so on
 
Back
Top