Hello,
thanks for you reply.

I think there's a little problem with this part of the script

input#item_id[type=text]

I've got it working this way

document.addEvent( 'domready' ,  function() {

    $('addRow').addEvent('click', function() {
        new Element('tr').adopt(
            new Element('td').adopt(new Element('input', {name: 
'item[][item_id]'})),
            new Element('td').adopt(new Element('input', {name: 
'item[][item_name]'}))
        ).injectInside('myTbody');
    });
});

Anyway the item number [] does not increment.

What do you think about?

Thank you

Reply via email to