I want to display the datepicker when page loads
$("#dp").datepicker("show");
but it is not working.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make sure you call the attach function only after the document has finished loading (otherwise you could be trying to attach to a dom element that doesn’t yet exist).
Also, make sure you have referenced the JQuery library correctly:
Or try using Microsoft’s or Google’s CDN-hosted versions:
Or