jRails and select boxes

Posted by Forkrul Assail on Stack Overflow See other posts from Stack Overflow or by Forkrul Assail
Published on 2010-04-15T08:50:00Z Indexed on 2010/04/15 8:53 UTC
Read the original article Hit count: 445

Filed under:
|
|

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)?

© Stack Overflow or respective owner

Related posts about rails

Related posts about jQuery