Widgets > wijdatepager > wijdatepager Tutorial > wijdatepager Step 2 of 3: Initializing the Widget |
In the previous step, you added markup to add the content that will appear in the datepager. In this step, you'll add the jQuery script needed to initialize the widget.
Complete the following step:
After the closing </div>
tag you added in the previous step, enter the following jQuery script to initialize the wijdatepager widget:
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#datepager").wijdatepager();
});
</script>
This script will initialize the widget.
You have created an application and added and initialized the wijdatepager widget. In the next step, in wijdatepager Step 3 of 3: Running the Project, you'll view the run-time interactions of the widget.