Datepicker | jQuery UI (original) (raw)

Datepicker


Select a date from a popup or inline calendar

Examples

The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.

view source

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <html lang="en"><head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href="" title="undefined" rel="noopener noreferrer">https://code.jquery.com/ui/1.14.0/themes/base/jquery-ui.css"\> <link rel="stylesheet" href="/resources/demos/style.css"> <script src="" title="undefined" rel="noopener noreferrer">https://code.jquery.com/jquery-3.7.1.js"\></script> <script src="" title="undefined" rel="noopener noreferrer">https://code.jquery.com/ui/1.14.0/jquery-ui.js"\></script> $( "#datepicker" ).datepicker();<p>Date: <input type="text" id="datepicker"></p>

Want to learn more about the datepicker widget? Check out theAPI documentation.