# Date\_select javascript\_tag

**URL:** <https://www.ruby-forum.com/t/date-select-javascript-tag/132442>\
**Category:** Rails\
**Created:** [March 20, 2008, 7:06am UTC](https://www.ruby-forum.com/t/date-select-javascript-tag/132442 "2008-03-20T07:06:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@sij](https://www.ruby-forum.com/u/sij)\
**Post date:** [March 20, 2008, 7:06am UTC](https://www.ruby-forum.com/t/date-select-javascript-tag/132442/1 "2008-03-20T07:06:13Z")

</div>

Hi

this is ok

Documento  
\<%= text\_field ‘entry’, ‘nr\_documento’ %\>

\<%= javascript\_tag render(:update) { |page|  
page[‘entry\_nr\_documento’].focus } %\>

this no

Data  
\<%= 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
