jQuery UI & Datepicker: Display inline

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

jQuery UI Datepicker – Display inline

Display the datepicker embedded in the page instead of in an overlay.

Simply call .datepicker() on a div instead of an input.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>jQuery UI Datepicker - Display inline</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 () {

<div id='datepicker'></div>

Try The Code Datepicker Widgets API Doc
Series Navigation<< jQuery UI & Datepicker: Add alternate date box
jQuery UI & Datepicker: Localize calendar >>

Leave a comment

Leave a Reply