on-internet
← Community

jQuery datepicker when loaded says undefined.

Stack Overflow ·

Im trying to implement a date picker in my form however when the code it added the date picker does not display in the brewers. When the console is inspected this error is posted TypeError: 'undefined' is not a function (evaluating '$( "#datepicker" ).datepicker()') The jQuery library file is added in the root folder. Bellow is the code used: $(document).ready(function() { $( "#datepicker" ).datepicker(); }); <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Datepicker</title> <link rel="stylesheet" href="jquery-ui-1.10.4.custom.css"> <script src="jquery-1.10.2.js"></script

Comments

Sign in or sign up to comment and upvote.

No comments yet.