# JS inserted inputs donâ€™t appear as parameters in controller

**URL:** <https://www.ruby-forum.com/t/js-inserted-inputs-dona-t-appear-as-parameters-in-controller/132702>\
**Category:** Rails\
**Created:** [March 23, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/js-inserted-inputs-dona-t-appear-as-parameters-in-controller/132702 "2008-03-23T19:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@adrie](https://www.ruby-forum.com/u/adrie)\
**Post date:** [March 23, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/js-inserted-inputs-dona-t-appear-as-parameters-in-controller/132702/1 "2008-03-23T19:14:33Z")

</div>

Iâ€™ve read â€˜How to get dynamically created inputs from html form back to,  
Posted by David J. (Guest) on 03.06.2006 04:03â€™ but it doesnâ€™t seem  
to work for me.

Iâ€™m using client-side javascript to add input tags to a webpage, but  
when I submit the page, there are no parameters created for the input  
fields, when it is entering the controller???

The code in the .js file:

function addBmw(){  
cnt = $(‘bmws’).select(‘div[id^=bmw]’).size();  
bmw = $F(‘sel\_bmw’).split(’|’);  
bmw\_line = ‘

’;  
bmw\_line += ’&nbsp; ![delete](https://test.ruby-forum.com/images/delete-icon.jpg)';  
bmw\_line += ‘’;  
bmw\_line += ’&nbsp;’ +  
bmw[1] + ‘’;  
bmw\_line += ‘
’;  
Element.insert(‘bmws’, {bottom: bmw\_line});  
}  
function delBmw(bmw\_id){  
Element.remove(‘bmw’ + bmw\_id)  
}

This works fine on the page, but no parameters received in the  
controller â€¦…  
Someone knows an answer? (or is it just working as designed?)

TIA, Adrie
