How to get the current value of a select box?

Hey, guys

I want to get the value of select box when i call the action
“get_result”.
Here is my code.


<%= observe_field 'search_form', :frequency => 0.5, :update => 'results', :url => { :controller => 'programs', :action=> 'get_results', :search_type => 'select_type' }, :with => "'search_text=' + escape(value)"%> <%= select "select","type",{"BOY" => '1', "Girl" => '2'}%> ******************************************************************************************************************* But i only get a string "select_type" every time. Can you tell me how to deal with it? Thanks.

BTW, if i replace “observe_field” to “observe_form”, a http post
request will be sent every time when i refresh the page.