html - Can't get the Datepicker to show on form using javascript -


i'm trying add datepicker online form part of student assessment. i'm new , i'm having issues . i've downloaded , linked jquery ui , i've typed code per jquery ui website states calendar doesn't pop on form when click in date field suggests, i've taken examples site still can't work.

<head>   <link href="javascript/jquery-ui-1.10.3.custom/css/south-street/jquery-ui-1.10.3.custom.css" rel="stylesheet">   <script src="javascript/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js"></script>   <script src="javascript/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"></script>    <script>     function validate(){   date = document.getelementbyid("datepicker").value;    errors = "";      if (date == ""){       errors += "please supply valid dob \n";     }   }   </script> </head>  <body>      <form name= "myform" method="post" action="" class="booking">   <fieldset>     <div>       <label for="datepicker" class="fixedwidth">date</label>       <input type="text" name="datepicker" id="datepicker"/>     </div>   </fieldset> </body> 

you need call code in ready or load function , or insert function , call in main js file.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -