How to get selected value from select_tag with params in remote_function's url?

select_tag("skippage",                         options_for_select ((first_page..last_page).to_a),                         :onchange => remote_function(:update => update,                                                      :url => {:controller => 'user' ,                                                                 :action => :list ,                                                                 :offset => ??? },

                                                                :complete => visual_effect(:highlight, "showdb" )))

#:complete => "alert($('skippage').getValue())"))

I want to send selected value to parms[:offset],but i dont know how to get the value

$('skippage').getValue() Only can use in the :complete,and it alert the selected value successfully

Thanks

add an extra options :with => "'offset='+this.value" that should solve the problem;

if what you're doing this for pagination, why not use will_paginate ?

add an extra options :with => “‘offset=’+this.value” that should solve the problem;

if what you’re doing this for pagination, why not use will_paginate ?

select_tag(“skippage”, options_for_select

((first_page…last_page).to_a), :onchange => remote_function(:update => update, :url => {:controller => ‘user’ ,

                                                            :action

=> :list , :offset => ??? },

                                                            :complete

=> visual_effect(:highlight, “showdb” )))

#:complete => “alert($(‘skippage’).getValue())”))

I want to send selected value to parms[:offset],but i dont know how to

get the value

$(‘skippage’).getValue() Only can use in the :complete,and it alert the selected value successfully

Thanks

THX,but I try to paginate with ajax