
How to avoid this?

How to avoid this?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Feb 14, 2023, 8:47 AM EST
Hello Gopi,
I guess you want month wise dates
like this if "Yes" then try this below code
var d = new Date(); var year = d.getFullYear(); d.setFullYear(year); $('#BirthDate').datepicker({ changeYear: true, changeMonth: true, yearRange: '1920:' + year + '', defaultDate: d});link : http://jsfiddle.net/arunpjohny/zg8Le/5/
also refer https://jqueryui.com/datepicker/
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 14, 2023, 7:16 AM EST
Hello Gopi,
Can you please provide your sample code to display datepicker?
Thanks
Naimish Makwana