All Projects → IckleChris → jquery-date-dropdowns

IckleChris / jquery-date-dropdowns

Licence: MIT license
A simple, customisable jQuery datepicker plugin to dynamically generate separate "day", "month" and "year" dropdowns, and provide a formatted date string for form submission

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to jquery-date-dropdowns

rn-date-range
date picker component for react native
Stars: ✭ 16 (-61.9%)
Mutual labels:  date, datepicker
Datepicker
Get a date with JavaScript! A datepicker with no dependencies.
Stars: ✭ 212 (+404.76%)
Mutual labels:  date, datepicker
Brpickerview
BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
Stars: ✭ 2,149 (+5016.67%)
Mutual labels:  date, datepicker
Horizontalpicker
DatePicker horizontal con selección smooth por día para Android.
Stars: ✭ 116 (+176.19%)
Mutual labels:  date, datepicker
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-38.1%)
Mutual labels:  date, datepicker
Calendar
📆 calendar 日历
Stars: ✭ 119 (+183.33%)
Mutual labels:  date, datepicker
Lightpick
(deprecated) Check out the new date picker Litepicker
Stars: ✭ 204 (+385.71%)
Mutual labels:  date, datepicker
Intl Date Time
International DateTime for Laravel Nova
Stars: ✭ 50 (+19.05%)
Mutual labels:  date, datepicker
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+34602.38%)
Mutual labels:  date, datepicker
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+6714.29%)
Mutual labels:  date, datepicker
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (+145.24%)
Mutual labels:  date, datepicker
react-calendar-datetime-picker
A simple and fast date and time picker component for React
Stars: ✭ 58 (+38.1%)
Mutual labels:  date, datepicker
Rc Datetime Picker
React component for datetime picker by Moment.js
Stars: ✭ 85 (+102.38%)
Mutual labels:  date, datepicker
Things Calendar
Simple but elegant datepicker for the web — inspired by Things for mac
Stars: ✭ 165 (+292.86%)
Mutual labels:  date, datepicker
Laydate
layDate(日期与时间组件) 是 layui 独立维护的三大组件之一
Stars: ✭ 1,066 (+2438.1%)
Mutual labels:  date, datepicker
Vuetify Daterange Picker
The missing date range picker for Vuetify JS you have been looking for.
Stars: ✭ 192 (+357.14%)
Mutual labels:  date, datepicker
React Picky Date Time
A react component for date time picker. Online demo examples
Stars: ✭ 31 (-26.19%)
Mutual labels:  date, datepicker
Persianrangedatepicker
Persian range date picker for android.
Stars: ✭ 48 (+14.29%)
Mutual labels:  date, datepicker
Vuejs Datepicker
A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
Stars: ✭ 2,529 (+5921.43%)
Mutual labels:  date, datepicker
react-modern-datepicker
A modern date picker for react library
Stars: ✭ 19 (-54.76%)
Mutual labels:  date, datepicker

#jQuery Dropdown Datepicker

A simple date select plugin. ####Demo

##Installation ####Bower bower install -S jquery-date-dropdowns

##Usage ####Instantiation

 $("#date_of_birth").dateDropdowns({
     configOption: configValue
 });

The plugin can be initialised either directly on an input field, or on a container element (e.g. a <div>).

####Date Validation The Day dropdown's options change automatically depending on the month selected. If the day value is rendered invalid after the selection of a month (e.g. selecting February when the selected day is 31st) the day dropdown is reset and a class of invalid is applied, remaining until a valid day is selected.

##Configuration Options

####dayLabel

Type: string Default: Day

Identifies the "Day" dropdown

####daySuffixes

Type: boolean
Default: true

Indicates whether day numbers should include their suffixes when displayed to the user (e.g. 1st, 2nd, 3rd)

####daySuffixValues

Type: array Default: ['st', 'nd', 'rd', 'th']

Ordinal indicators (can be overridden for internationalisation purposes)

####defaultDate

Type: string
Default: null

Populate the widget with a default date. Use with defaultDateFormat

####defaultDateFormat

Type: string
Default: yyyy-mm-dd
Options: dd/mm/yyyy, mm/dd/yyyy

The format of the date string provided to defaultDate

####displayFormat

Type: string
Default: dmy
Options: myd, ymd

Specify the order in which the dropdown fields should be rendered. Defaults to Day Month Year

####dropdownClass

Type: string
Default: null

Set the class attribute of generated dropdown elements

####initialDayMonthYearValues

Type: array Default: ['Day', 'Month', 'Year']

Initial dropdown values (can be overridden for internationalisation purposes)

####maxAge

Type: int
Default: 120

Indicates the maximum age the widget will accept

####maxYear

Type: int
Default: null

The highest year option that will be available. Note: this will take precedence over minAge

####minAge

Type: int
Default: 0

Indicates the minimum age the widget will accept

####minYear

Type: int
Default: null

The lowest year option that will ba available. Note: this will take precedence over maxAge

####monthFormat

Type: string
Default: long
Options: numeric, short

Specify the format dates should be in when presented to the user

####monthLabel

Type: string Default: Month

Identifies the "Month" dropdown

####monthLongValues

Type: array Default: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']

Long month dropdown values (can be overridden for internationalisation purposes)

####monthShortValues

Type: array Default: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

Short month dropdown values (can be overridden for internationalisation purposes)

####monthSuffixes

type: boolean Default: true

Indicates whether month numbers should include their suffixes when displayed to the user (e.g. 1st, 2nd, 3rd)

####required

Type: boolean
Default: false

Whether the required html5 attribute should be applied to the generated <select/> elements

####submitFieldName

Type: string
Default: date

Specify the name attribute for the hidden field that will contain the formatted date for submission. Note: this will overwrite an existing name attribute on an input element

####submitFormat

Type: string
Default: yyyy-mm-dd

Specify the format the submitted date should take using dd, mm and yyyy placeholders. For example dd/mm/yyyy will render 30/12/2000

####wrapperClass

Type: string
Default: date-dropdowns

Specify a classname to add to the widget wrapper

####yearLabel

Type: string Default: Year

Identifies the "Year" dropdown


###Methods

####destroy

Call the destroy method to undo any changes made during the plugin's initialisation.

Example:

$("#date-dropdown").dateDropdowns('destroy');

###Contributing Feel free to submit any fixes or propose any additional functionality via pull request or issue, making sure any changes take place in /src. Any code changes must pass the JSHint validation, and where possible also update the minified file.

####Minification and Validation Both are automated via Grunt. Run npm_install to install the required dependencies, then run grunt from the root of the project to handle the tasks.

###To Come

  • Ability to specify relative dates as default values (e.g. today, +1 week or my wedding anniversary).
  • Ability to pass an instantiated date() object as a default value
  • Similarly formatted time inputs (hours : minutes, optional seconds). This is likely to be a separate file to avoid unnecessary bloat for users who only need date inputs, but a merged version should also be available.
  • And maybe more, who knows..
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].