title: Auto populate text_fields based on selected item from another collection_select in Rails 3
body: <hr>
  
  <p>Hello people</p>
  
  <p>I'm trying to figured this out, but I still can't do it.</p>
  
  <p>I have a rails 3 app, I'm working with invoices and payments. In the form for payments I have a collection_select where I display all the invoices number (extracted from a postgres database), and what I'm trying to do is when i select an invoice autopopulate others text_fields (provider, address, etc.) without reloading the page, in the same form.</p>
  
  <p>I know I should use ajax, js, jquery, but I'm a beginner in these languages, so i don't know how or where to start</p>
  
  <p>hope you can help me... thanks</p>