Javascript_tag date_select

Ciao

Questa funziona
Documento
<%= text_field ‘entry’, ‘nr_documento’ %>

<%= javascript_tag render(:update) { |page|
page[‘entry_nr_documento’].focus } %>

questa non funziona
Data
<%= date_select ‘entry’, ‘data’, :order => [:day, :month, :year],
:start_year => 2006 %>
<%= javascript_tag render(:update) { |page| page[‘entry_data’].focus }
%>

errore $(“entry_data”) has no properties

Dove sbaglio ? scusate se sto facendo una domanda stupida.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs