问题
I"m using twitter bootstrap datepicker . refer the link http://www.eyecon.ro/bootstrap-datepicker/
I want to show week number like the following http://jsbin.com/omaqe/1/edit
I don't want to change the jquery plugin. I want to use only twitter bootstrap datepicker. How to show week number using this.
and
I want to show datepicker based on the culture. Please give me solution for this too..
Thank you for your effort to help me.
回答1:
In bootstrap datepicker, there is an option called calendarWeeks(a boolean dataType), Whether or not to show week numbers to the left of week rows.
$('#datepicker').datepicker({
calendarWeeks: true
});
Fiddle
来源:https://stackoverflow.com/questions/20235989/how-to-show-week-number-in-twitter-bootstrap-date-picker