I have a rails application and I want to add the jQuery datepicker, to show when the user selects a field in a form.
The field is built using the following code:
<%= f.text_field :collection_date_time %>
Resulting in:
<input class="input-medium" id="pick_collection_date_time" name="pick[collection_date_time]" size="30" type="text" />
I have added the following to my pick.js.coffee file, but when I select the field, nothing happens.
$ -> $("#pick_collection_date_time").datepicker()
For info, I'm also using the twitter bootstrap framework (and the associated js).
Any ideas why this isn't working?