title: Ruby on Rails: Getting the value from a select form field before it's submitted
body: <p>I'm trying to get the value of a select form field, before it's submitted and save the value into a variable. I know that you can't do it with Rails only. So JavaScript/Ajax will do the trick. I'm pretty new to Rails, so I hope you can help.</p>