javascript - Jquery UI Datepicker not working on Jquery 2.0.3 -


a quick question, have code implementing jquery ui datepicker version of jquery2.0.3, , can't make work. don't know if there's issue or missing something. i'm following docs. code jqueryui datepicker tutorial


here's code

<!doctype html> <html lang="en"> <head>   <meta charset="utf-8">   <title>jquery ui datepicker - select date range</title>   <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">   <script src="//code.jquery.com/jquery-2.0.3.js"></script>   <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>   <script>   $(function() {     $( "#from" ).datepicker({       defaultdate: "+1w",       changemonth: true,       numberofmonths: 3,       onclose: function( selecteddate ) {         $( "#to" ).datepicker( "option", "mindate", selecteddate );       }     });     $( "#to" ).datepicker({       defaultdate: "+1w",       changemonth: true,       numberofmonths: 3,       onclose: function( selecteddate ) {         $( "#from" ).datepicker( "option", "maxdate", selecteddate );       }     });   });   </script> </head> <body>  <label for="from">from</label> <input type="text" id="from" name="from"> <label for="to">to</label> <input type="text" id="to" name="to">   </body> </html> 

could me. in advance.

you need include jquery core library before jquery ui in fiddle since jquery ui require core jquery work.

updated fiddle


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -