Hi this is ok <label for="entry_nr_documento">Documento</label> <%= text_field ''entry'', ''nr_documento'' %> <!-- porta il focus sulla casella di testo --> <%= javascript_tag render(:update) { |page| page[''entry_nr_documento''].focus } %> this no <label for="entry_data">Data</label> <%= date_select ''entry'', ''data'', :order => [:day, :month, :year], :start_year => 2006 %> <%= javascript_tag render(:update) { |page| page[''entry_data''].focus } %> err $("entry_data") has no properties where is the mistake?. thank -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---