mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-28 09:54:44 +00:00
added markup example to datepicker documentation
This commit is contained in:
parent
b50d6a74c2
commit
7ba7315e27
1 changed files with 12 additions and 1 deletions
|
|
@ -38,7 +38,16 @@
|
|||
|
||||
<h2>Usage Instructions</h2>
|
||||
|
||||
<p>This plugin is not included in jQuery Mobile by default, so you'll need to include the following files in order to use it:</p>
|
||||
<p>The datepicker auto-generates from a regular <code>input</code> element with a <code>type="date"</code> attribute.</p>
|
||||
|
||||
<pre><code>
|
||||
<label for="date">Date Input:</label>
|
||||
<input type="date" name="date" id="date" value="" />
|
||||
</code></pre>
|
||||
|
||||
<p>We'd recommend wrapping the label and input in a fieldcontain div for presentation purposes, and these elements should be placed within a <code>form</code> element for C-Grade browser accessibility.</p>
|
||||
|
||||
<p><strong>Note:</strong> This plugin is not included in jQuery Mobile by default, so you'll need to include the following files in order to use it:</p>
|
||||
|
||||
<pre><code>
|
||||
<link rel="stylesheet" href="jquery.ui.datepicker.mobile.css" />
|
||||
|
|
@ -58,6 +67,8 @@
|
|||
|
||||
<p>Be sure to place this event binding in a script that loads after jQuery, but before jQuery Mobile. Check this page's source for an example.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue