Skip to content

Transform your input fields in a datepicker in a few simple steps

Notifications You must be signed in to change notification settings

GypsyCodex/Datefier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

datefier

Transform your input fields in a datepicker in a few simple steps.

Basic Usage

Import jQuery and jQueryUI

 <link rel="stylesheet" href="http//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
 <script src="http//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
 <script src="http//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>

Create an input field and give it the datepicker class

<input type="text" class="datepicker" />

Set a date range:

<input type="text" class="datepicker from" />
<input type="text" class="datepicker to" />

Start from today:

<input type="text" class="datepicker gte-today" />

Start from tomorrow:

<input type="text" class="datepicker gt-today" />

Stop today:

<input type="text" class="datepicker lte-today" />

Stop yesterday:

<input type="text" class="datepicker lt-today" />

About

Transform your input fields in a datepicker in a few simple steps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published