title: Rails: How to create a Add more button which add some textfield in erb form with jquery
body: <p>I am creating a form in which quote_amounts is contains Hash. I want to create a form with a button in which when i click on button new set of textfields opens</p>
  <p>for ex:
  when a form opens there should be one 2 textfields: label &amp; amount, and when i send data to it
  the params should be <code>&quot;quote_amounts&quot;=&gt; [{&quot;label&quot;=&gt; &quot;website&quot;, &quot;amount&quot;=&gt; 1000}]</code></p>
  <p>and when i click on add more button a set of 2 new text fields should open and then i fill the data then params should be</p>
  <p><code>&quot;quote_amounts&quot;=&gt; [{&quot;label&quot;=&gt; &quot;website&quot;, &quot;amount&quot;=&gt; 1000}, {&quot;label&quot;=&gt; &quot;website1&quot;, &quot;amount&quot;=&gt; 11000}]</code></p>
  <p>and same if i add more text fields.</p>
  <p>quote_amounts is a jsonb field</p>
  <p>please help me with this, stuck in this for 2 days.</p>