[jQuery] Re: Clone html and change input value

2009-05-14 Thread rmfjcr
rue).val("some value"); > var node = $("some node").clone(true).attr("some attr", "some value"); > > On 14 May, 00:13, rmfjcr wrote: > > > Hi everybody. > > I've got a form where users can insert ingredients (name, quantity) &g

[jQuery] Clone html and change input value

2009-05-13 Thread rmfjcr
Hi everybody. I've got a form where users can insert ingredients (name, quantity) for recipes. as they need more couples to store all the ingredients, they use the "add ingredient" link to obtain another couple of input fields. Here comes the problem: I need to increment the value of the hidden in