Does the datepicker have an equivalent to onFirstLoad the way it has an onSelect function or something similar? If not, is it possible to simulate such a trigger for datepicker?
Share
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.
You can check if the datepicker div is now present like so:
Note: If what you want to do is datepicker specific, then I would recommend looking at the datepicker options to specify what you want.
Also, if you are waiting for JQuery UI to be loaded, look at $.getScript.
Snippet below