Displaying 1 result from an estimated 1 matches for "select_company".
Did you mean:
select_command
2006 May 23
0
RJS replace adding multiple inputs
...remote is
pressed. In the link''s action rjs, I''m doing the following:
Assume my form has the following field already
<%= hidden_field(''client'', ''company_id'') $>
So I have a bunch of companies in a list with link_to_remote tags to
action select_company.rjs inside which I want:
page.replace "client_company_id", hidden_field("client", "company_id", :
value => @company.id
But when I do this, it works but it adds an additional blank <input> tag:
<input>
<input id="client_company_id", n...