# Nested forms, dynamic elements and valid xhtml/DOM ids

**URL:** <https://www.ruby-forum.com/t/nested-forms-dynamic-elements-and-valid-xhtml-dom-ids/171819>\
**Category:** Rails\
**Created:** [July 9, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/nested-forms-dynamic-elements-and-valid-xhtml-dom-ids/171819 "2009-07-09T18:11:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinunt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/7c8e57/32.png) [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Post date:** [July 9, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/nested-forms-dynamic-elements-and-valid-xhtml-dom-ids/171819/1 "2009-07-09T18:11:00Z")

</div>

Hi,

I would like to know if anyone has been able to implement correctly 2.3  
nested forms and create dynamically (javascript) a bunch of nested  
elements with their correct DOM ids.

I’ve seen Complex forms Railcasts but they use pre-2.3 nested forms.  
I’ve seen Alloy solution but it is not working properly to me. When  
creating more than two lines dynamically the id is repeated.  
I’ve seen Zilkey solution but its implemented for pre-2.3 nested forms.

Any idea, help, pointer, blog post, etc… will be really appreciated!!

Thanks!
