# Dynamic html elements in erb file

**URL:** <https://www.ruby-forum.com/t/dynamic-html-elements-in-erb-file/162370>\
**Category:** Rails\
**Created:** [March 9, 2009, 10:22am UTC](https://www.ruby-forum.com/t/dynamic-html-elements-in-erb-file/162370 "2009-03-09T10:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![badari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3e96dc/32.png) [@badari](https://www.ruby-forum.com/u/badari)\
**Post date:** [March 9, 2009, 10:22am UTC](https://www.ruby-forum.com/t/dynamic-html-elements-in-erb-file/162370/1 "2009-03-09T10:22:49Z")

</div>

Hi,  
I have a huge table in database and need to fill the values using web  
forms.  
Some fields are repeatable so my form can have a link to provide same  
form many times.  
I can acheive this by using java script but how to get id of elements  
added dynamically.  
For example if I add one

 containing 1 text box 1 combobox, how  
to get ids so that I can use them in my erb file.
