[Solved] how to show date picker on link click with jquery


Thank you @Len_D. The answer can be found here by someone else who already asked this question:

Open Datepicker by clicking a Link

<input id="hiddenDate" type="hidden" />
<a href="#" id="pickDate">Select Date</a>

And the JS:

$(function() {
    $('#hiddenDate').datepicker({
        changeYear: 'true',
        changeMonth: 'true',
        startDate: '07/16/1989',
        firstDay: 1
    });
    $('#pickDate').click(function (e) {
        $('#hiddenDate').datepicker("show");
        e.preventDefault();
    });
});

solved how to show date picker on link click with jquery