I need to show other months as ‘-‘ in my jquery ui datepicker.
$( "#datepicker" ).datepicker({
showOtherMonths: true
});
The above code shows the other month dates. But, I need to show other months date as ‘-‘.
For Ex,

Kindly Anyone help..
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 can’t find anything that allows you to control the text that is displayed in the “other month” cells but you can kludge your way around it.
Guganeshan.T is on the right track. But the tricky part is applying the change at the right time. The
beforeShowandonChangeMonthYearevents are fired before the new month is displayed and there are after versions of those events. My usual trick for situations like this is to usesetTimeoutwith a timeout of zero, that effectively lets you queue up a function to be called once the browser gets control again and that’s after the current chunk of JavaScript has finished running. So something like this should do the trick:Demo: http://jsfiddle.net/ambiguous/YKNmV/1/
That’s pretty kludgey and smelly but it works, it should be pretty solid, and I can’t think of any other way.