From: Edgars Liepa Date: 2011-04-12T17:14:58+09:00 Subject: fill form when collection_select is changed Hey there. :) I have a problem. I have collection_select, witch takes values from DB I need to run fill textboxes from other table in DB, when collection_select is selected.. can anyone tell me how can i make this run function when collection_select is changed, cos my code is not working.. And i have jquery in my ruby on rails project, so thats ok.. my code: <%= f.label :stick_type %> <%= h.collection_select :stick_id, Stick.all, :id, :stick_type, :prompt => "Select Stick", :onchange => "fill_form(this)" %>
-- Posted via http://www.ruby-forum.com/.