Uncaught type error: $(…).datepicker() is not a function
问题 I am trying to use the jQuery datepicker function but I am receiving an error Uncaught type error: $(...).datepicker() is not a function . I have gone through my files and do not see a double reference to jQuery or incorrect file order in the application.js . Could someone help point out what might be the problem? application.html.erb <!DOCTYPE html> <html> <head> <%= javascript_include_tag 'application' %> <title>MyApp</title> <meta name="viewport" content="width=device-width, initial-scale