jQuery UI & Datepicker: Display multiple months

This entry is part 13 of 14 in the series jQuery UI Datepicker

jQuery UI Datepicker – Display multiple months

Set the numberOfMonths option to an integer of 2 or more to show multiple months in a single datepicker.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>jQuery UI Datepicker - Display multiple months</title>
    <link rel='stylesheet' href='//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css'>
    <script src='//code.jquery.com/jquery-1.10.2.js'></script>
    <script src='//code.jquery.com/ui/1.10.4/jquery-ui.js'></script>
    <link rel='stylesheet' href='http://codecrawl.com/code/jqueryui/jqueryui_style.css'>
        $(function() {
            $( '#datepicker' ).datepicker({
                numberOfMonths: 3,
                showButtonPanel: true

<p>Date: <input type='text' id='datepicker'></p>

Try The Code Datepicker Widgets API Doc
Series Navigation<< jQuery UI & Datepicker: Trigger by icon
jQuery UI & Datepicker: Date format >>

Leave a comment

Leave a Reply