how to add a row to a table dinamically

how to add a row to a table dinamically

Hi friends, i explain my scenario:

i have a table:

myTable

c1         type
64              1
64              2
72              1
128            2
80              1
145            3

in Master page the user choose the type, suppose the user choose the type=1, 

with a select statment:

select * from myTable where type=1 i get this rows:

c1            type  
66              1
88              1
138            1

with this rows i need create (in this case) 3 input texts and create a table with 3 columns  (see the image attached.

each input text have the name and id same as: name='66' id='66'

my main problem is how to, when user press/click 'Agregar' button how to add the row at the table (at the bottom)

my table name is:  name='myDetailTable'

how do it with jquery?


thanks