reusing partials churned times page flush rails
i have biased renders name box controlling following method:
<%= collection_select 'type', 'id', @types, "id", "name",
{:prompt => true},
{:onchange =>
remote_function(
:loading => "form.element.disable('go_button')",
:url => '/sfc/criteria/services',
:with => "'type_id=' + encodeuricomponent(value) + '&use_wizard=#{use_wizard}'"),
:class => "hosp_select_buttons"
} %>
this biased gets used 2 times each page, nonetheless during indicate i need value initial name box. using:
$('type_id')
returns second name box. there proceed initial easily? should i repair controlling javascript redoing partial?
note: dropdowns rendered removed forms.
Comments
Post a Comment