How to properly set up datepicker attached to a button
<p>I am currently working on a Django project using Grappelli and I am trying to create a page that mimics a standard change form. The page is not based on any model, so I am simply adding in all the fields myself. However, I am having trouble using the datepicker. Whenever I click the button that is supposed to show the calendar, nothing happens. I am sure I am simply not including something important.</p>

<p>Here is my current code:</p>

<pre><code>{% extends "admin/change_form.html" %}

{% block javascripts %}
{{ block.super }}
{% endblock %}

{% block content %}

    &lt;div id="grp-content-container"&gt;
        &lt;form enctype="multipart/form-data" action method="post"&gt;
            {% csrf_token %}
            &lt;div&gt;
                &lt;fieldset class="module grp-module"&gt;
                    &lt;div class="form-row grp-row grp-cells-1 dob"&gt;
                        &lt;div class="field-box l-2c-fluid l-d-4"&gt;
                            &lt;div class="c-1"&gt;
                                &lt;label class="required" for="dob"&gt;Birthday&lt;/label&gt;
                            &lt;/div&gt;
                            &lt;div class="c-2"&gt;
                                &lt;p class="datetime"&gt;
                                    &lt;input class="vDateField hasDatepicker" type="text" id="dob" name="dob"&gt;
                                    &lt;button id="dob-button" type="button" class="ui-datepicker-trigger"&gt;&lt;/button&gt;
                                &lt;/p&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
               &lt;/fieldset&gt;
            &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
{% endblock %}
</code></pre>

<p>In the javascripts block, I had attempted to add in the datepicker source functionality as taken from this website <a href="http://jqueryui.com/datepicker/" rel="nofollow">http://jqueryui.com/datepicker/</a>, but that did not seem to have any effect. Any suggestions?</p>