I have a select box that needs to submit it's value to a server side controller on change.
The submit works. The value of the changed element is however not sent.
I've scoured some examples online, but none seem to work
remote_function(
:url => some_remote_function_path,
:with => "'key1='+$('elem_id').value +'&key2='+$('elem_id').value+ '&this_elem_value='+value"
)
The moment I pass
$('elem_id').value
I simply get that 'statically' as the actual variable passed.
How do I get access to the selected select box value? I'm sure I'm missing something minute her.
Thanks.