Friday, December 31, 2010

Rails Calendar date select without Image

Hi.

calendar_date_select plugin uses the following tag,

<%= calendar_date_select_tag "start_date", Time.now, :size => 15 %>

The above tag gives a text box and an Image. Which i really don't need.

I have called the onclick function which was written in the image onclick with text box as follows,

<input type="text" name="start_date" onclick="new CalendarDateSelect( this, {year_range:10} );" />

Date Select work fine now with image.

No comments: