View Full Version : Am I references this correctly?

18 Mar 2011, 10:02 AM

Basically I dynamically create fieldsets from my db and add them to my recipe panel, on each iteration I use

id: "recipe" + i

and within the items of the fieldset I have a text area used for comments which I assign

id: "textarea"

I want to save all the comments when the user is done with the set of recipes so am I doing this correctly?

// looping with i to recipestore.getCount()
var comment = this.recipePanel.findById("recipe"+i).findById("commentarea").getValue();