views:

23

answers:

1

if i put this code to show jquery datepicker:

<script type="text/javascript">
$(function () {
    $('#datepicker').datepicker({
        numberOfMonths: 9,
        showButtonPanel: true
    });
});
</script>

it shows 9 months all in the same row. Is there anyway to show a grid where i have 3 rows of 3 months each?

+1  A: 

You can pass the numberOfMonths option as an array instead to do what you want, like this:

<script type="text/javascript">
$(function () {
    $('#datepicker').datepicker({
        numberOfMonths: [3, 3],
        showButtonPanel: true
    });
});
</script>
Nick Craver