# date\_select javascript\_tag

**URL:** <https://discuss.rubyonrails.org/t/date-select-javascript-tag/26592>\
**Category:** rubyonrails-talk\
**Created:** [March 20, 2008, 6:06am UTC](https://discuss.rubyonrails.org/t/date-select-javascript-tag/26592 "2008-03-20T06:06:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 20, 2008, 6:06am UTC](https://discuss.rubyonrails.org/t/date-select-javascript-tag/26592/1 "2008-03-20T06:06:13Z")

</div>

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
