There is a textbox that requires a date but has no date picker. I would like to add one with Greasemonkey. I looked for an example but could not find one.
Is this possible? Is there an example for doing this? It doesn’t need to be fancy.
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.
I like to use jQuery UI’s datepicker() because I usually have jQuery UI loaded anyway, and it’s fairly well-known/supported.
Unfortunately, the datepicker functionality uses some criminally-bad event code, which requires a little fudging to work in a sandboxed environment.
Still, its not too difficult. Here is a complete Greasemonkey script:
You can load this and test it against this page at jsBin.