before we come up with an answer - you should be aware that doing item[][item_id] will auto increment it
On Sun, Dec 19, 2010 at 6:00 PM, lidgold <[email protected]> wrote: > Hello Arian, > thanks for you reply. > Actually my problem is a bit more complicated. > I have one table with one row and a few input fields, like this: > > <table id="myTable"> > <tr> > <td><input type="text" id="item_id" name="item[0][item_id]" value="" > /></td> > <td><input type="text" id="item_name" name="item[0][item_name]" value="" > /></td> > <tr> > </table> > > I have to create another tr inside #myTable and populate it with td and > input fields, while adding 1 to the item. > I should end up like this: > > <table id="myTable"> > <tr> > <td><input type="text" id="item_id" name="item[0][item_id]" value="" > /></td> > <td><input type="text" id="item_name" name="item[0][item_name]" value="" > /></td> > <tr> > > <tr> > <td><input type="text" id="item_id" name="item[*1*][item_id]" value="" > /></td> > <td><input type="text" id="item_name" name="item[*1*][item_name]" > value="" /></td> > <tr> > > </table> > > Have you got any link or example? > > Thank you. > -- Arieh Glazer אריה גלזר 052-5348-561 http://www.arieh.co.il http://www.link-wd.co.il
