I have two inputs with the same date, but i want to separate the day from the month and year. When select one, updates the other… I have almost done it but i have some problem that i dont understand…
There is a exemple,
Tkhs in advance
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.
Update: For some reason,
minDateis causing problems, so I’d suggest removing it first if you don’t need it. When you select a date, and your date format only shows part of it (days, or month/year), only that part is taken into account, which is not what you want. A workaround for it would be to change the dateFormat right before the dialog opens, and change it back after selection:The input for days is analogous. Full code on jsFiddle.