Home Forums Porto Admin Template Datepicker

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10031183
    chonikthongdok
    Participant

    i am usng this code to edit the datepicker to show months and years only but it doesnt work:

    $(“#datepicker”).datepicker( {
    format: “MM-yyyy”,
    startView: “months”,
    minViewMode: “months”
    });


    #10031188
    Support2
    Keymaster

    Hello, thanks for your purchase.

    Instead of datepicker() you need use the function bootstrapDP(). For example:

    $("#datepicker").bootstrapDP( {
    	format: "MM-yyyy",
    	startView: "months",
    	minViewMode: "months"
    });

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)