[Fixed]-Prepopulate jQuery datepicker with list of Django date objects

1👍

If the JS part is found in your page it’s as easy as:

addDate: {% for x in myDateList %} {{ x }} {% endfor %}

If not, you need to check if the library allows you to populate the list of dates using ajax, you’ll need to create a view that returns available_dates as json.

👤Ali

Leave a comment