I’ve just tried the daterangepicker and for some reason it uses every form and button I have on my site. Why is this? Is there a better alternative? Thanks :)))
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.
It appears that plugin does not properly handle selectors that target multiple elements.
Just as a quick work-around, try this (not tested, but should work):
Note that this will apply the picker to all input elements, but each one is controlled individually rather than all inputs being updated by a single picker.
If you wish to target only a single input, you need to give that input a unique ID or class and update your selector to target it (e.g. #my_datepicker or .my_datepicker)