Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
jquery datepicker changemonth not working

What I have tried:

$("#from").datepicker({
dateFormat: "yy-mm-dd",

changeMonth: true
});
Posted
Comments
Karthik_Mahalingam 10-Nov-17 4:06am    
have tried this simple code, it works as expected
<html lang="en">
<head>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">     
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
    <script>
        $(function () {
            $("#datepicker").datepicker({ 
                changeMonth: true
            });
        });
    </script>
</head>
<body> 
   <input type="text" id="datepicker"> 
</body>
</html>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900