views:

50

answers:

0

I have a drop-down box that I want to submit data, onchange.

Previously I used:

    select_tag name,  options_for_select(pairing_options, :selected => 'Y'),
{ :onchange =>
    remote_function(
         :url => {
                   :action => 'pair',
                   :escape => 'false',
                   :update_grid_item => update_position,
                   :with => "'value=' + this.value"
                 }
    )
}

How would I change this to work in jQuery (with jRails)?