I am using jQuery date picker to display the calendar all over my app. I want to know if I can use it to display the month and year (May 2010) and not the calendar?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
If anyone want that also for multiple calendars its not very hard to add this functionallity to jquery ui. with minified search for:
add this in front of x
search for
and replace it with
also search for
replace it with
for css you should use:
after that all is done just go to your desired datepicker init functions and provide setting var
justMonth: true
is the key here :)Add one more simple solution
http://jsfiddle.net/tmnasim/JLydp/
Features:
------------------------------------
another solution that work well for datepicker and monthpicker in the same page:(also avoid the bug of mutiple click on previous button in IE, that may occur if we use focus function)
JS fiddle link