lundi 11 juillet 2016

Is there a way to show the month names of the calendar on the top?

Let's say if a month(eg:June -2016) is selected from datepicker of JQuery.It shows 29th of May to 2nd of July.Here I want to restrict the number of weeks to 4. So I want to change the heading as May-29 To Jun-25.Thus it follows for the other months.

Html

<h4>
Fiscal Year
</h4>
<input type="text" id="mydatepicker" />

JQuery

$(document).ready(function () {
    $("#mydatepicker").datepicker({
        showOtherMonths: true,
        selectOtherMonths: true
    });
})

enter image description here

Updated Fiddle here

Aucun commentaire:

Enregistrer un commentaire