title: How to get the current value from a select_tag to another in view rails
body: <p>I have 2 select tags, the first is Teams and the second is for member ! I want the second select tag to be filled depending on the selection of the Team.</p>
  
  <p>Example : </p>
  
  <pre><code>Team1 has user1 and user2
  Team2 has user3 and user4
  </code></pre>
  
  <p>I want if if I select the <code>team1</code> the second select tag would have only the values of its members which will be <code>user1</code> and <code>user2</code>.</p>
  
  <p><strong>PS: I know how to invoke ajax and pass them to controller and deal with params, I just want to know if there is any way I can get the current value in view and pass to the next select tag</strong></p>