I have a dropdown select on my page called `language`, which is in a form with other elements. When the form is submitted normally (which submits everything), I can access the value of the dropdown with `params[:langauge]`.

I have another link/button on the page which, when clicked, should get the value of language and pass it to the controller. The controller could then run some ajax to change the language on the page. But how do I pass (just) the value of the dropdown through the link? 

Update:
Should I get the value with Jquery, or is there a simpler way?

```
 $('select[name="language"]').val()

```