javascript - Jquery Datepicker function -


unstyled , strange datepickeri'm trying datepicker work in firefox using js.

here simple code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>    <script>    $(function() {      $('input[type=date]').datepicker({        dateformat: 'yy-mm-dd'      });    });  </script>

i keep getting error datepicker not function. seems wrong?

kind regards

you need datepicker.js too:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>  <script src="https://cdnjs.cloudflare.com/ajax/libs/datepicker/0.5.4/datepicker.js"></script>    <script>    $(function() {      $('input[type=date]').datepicker({        dateformat: 'yy-mm-dd'      });    });  </script>


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -