I'm trying to insert Jquery's datepicker into my webpage. I'm importing correctly, because I have it working on a form on a different page, but I'm trying to do something a little different on this one. I have a pre-entered date displayed on the page with a little "edit" icon next to it. I want to click on the icon and change the date into an input field that acts as a datepicker. It successfully changes into a text input field, but for some reason the datepicker calendar doesn't pop up when I select it.
My HTML:
<a class="edit" href="#!" onClick="editStart()">
<i class="icon-edit icon-white"></i> </a> Start Time:
<span style="outline-color:black;" id="start">{{ event.start }}</span>
Javascript:
function editStart(){ // Makes start time of event editable
$('#tabs2').slideDown(200);
$('#start').html('<input type="text" id="datepicker">');
}