Reputation: 5143
I want to let user select year and month in both combo boxes. The issue is they are showed one under the other instead of one beside each other.
I want this:
I get this:
Thank you.
Upvotes: 0
Views: 1775
Reputation: 21
The best way of changing the width no matter what the CSS says is:
var origyearshtml,
numMonths = this._getNumberOfMonths(inst) ...
width=17
;This is the only solution that worked for me when using multiple months.
Upvotes: 0
Reputation: 5143
Solved changing this css class form jquery-ui.css
.ui-datepicker select.ui-datepicker-month .ui-datepicker select.ui-datepicker-year { width: 30%;}
30% ensures in my case that both selects will be showed in one row. I used IE developer tools to find the css class:
Upvotes: 2