That might be very well what I need. Maybe if I explain the situation a little more:
Each of the subforms is hidden by default. A user would toggle the form, enter information, and then submit the form for an update. Because it's just a sub form that they are submitted, I'm submitted the form asynchronously and when the page gets loaded again, I want to re-display whatever forms where open. So if forms 1,3 and 4 were closed on submission, but form 2 was open, when the page loads I want to redisplay form 2 as 1,3, and 4 will be closed by default.
Does this make any more sense?
If it helps, in ColdFusion this process would look like:
Where i is the dynamic value...
<cfset "variables.form-container-#i#" = "This value" />
<cfset variables.temp_var = Evaluate("variables.form-container-" & i) />