javascript - Jquery Datepicker function -
i'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
Post a Comment