# Date\_select, problem with setting the class

**URL:** <https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990>\
**Category:** Rails\
**Created:** [February 27, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990 "2007-02-27T12:21:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantouffe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pantouffe](https://www.ruby-forum.com/u/pantouffe)\
**Post date:** [February 27, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990/1 "2007-02-27T12:21:58Z")

</div>

my code looks like this

\<%= date\_select(“lob”, “date”, :class =\> ‘selectdate’) %\>

-when i look in to the source of html page, only the first and second  
select that are built automatically contains class=“selectdate”, for the  
third class specification is missing.  
-It’s this a bug? thank u.

---

<div class="post-metadata">

**Author:** ![pantouffe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pantouffe](https://www.ruby-forum.com/u/pantouffe)\
**Post date:** [March 1, 2007, 9:01am UTC](https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990/2 "2007-03-01T09:01:42Z")

</div>

can anyone help me?
