J
James
I have an array of frame colors called @frame_color and I created a
dropdown menu that triggers a remote_function when the value is changed.
The problem is that I can't seem to figure out how to pass the value of
the selected string from the dropdown menu.
this is the code I have:
<%= select_tag
frame_color, options_for_select(@frame_color),
nchange
=> remote_function
update => "middle_sub_right", :url => {:action =>
'print_change', :color => params[:frame_color], :id => @prints,
hoto
=> @photo}))%>
all I need is for this to happen; if someone picks brown from the
dropdown menu then brown will be passed to :color =>
thanks for any help.
dropdown menu that triggers a remote_function when the value is changed.
The problem is that I can't seem to figure out how to pass the value of
the selected string from the dropdown menu.
this is the code I have:
<%= select_tag
=> remote_function
'print_change', :color => params[:frame_color], :id => @prints,
=> @photo}))%>
all I need is for this to happen; if someone picks brown from the
dropdown menu then brown will be passed to :color =>
thanks for any help.