GithubHelp home page GithubHelp logo

mickaelr / jquery-dateselector Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 816 KB

jQuery-based date select field. More ergonomic than classic datepickers for past dates like birthdays...

License: MIT License

CSS 2.36% JavaScript 93.39% HTML 4.24%

jquery-dateselector's Introduction

DateSelector

Datepickers are great, that's right. But in some cases it's not intuitive at all. For example when you want to get a user's birthday, online selects or dropdowns are a lot much better.

The aim of this plugin is to easily build that kind of form fields for date input.

Installation

For now, the plugin has dependencies with jQuery and Moment. You can include it like following. The css file isn't required if you don't want to use the plugin style. Bootstrap & Foundation aren't required at all, they're in the repo only for demo purpose.

Usage

HTML

    <head>
        <link href="path/to/plugin/dateselector.css" rel="stylesheet">
    </head>
    <body>
        <div id="element"></div>
        <script src="path/to/jquery/jquery.js"></script>
        <script src="path/to/moment/moment.js"></script>
        <script src="path/to/plugin/jquery.dateselector.js"></script>
    </body>

JAVASCRIPT

    $(document).ready(function() {
        $('#element').dateSelector();
    });

Demo

See demo project page

License

The plugin is under MIT License

TODO

  • Unit testing
  • Build a "light version" of the plugin
  • Plain javascript version
  • Angular wrapper/version
  • Try to remove momentjs dependency (or make it easier to use)

jquery-dateselector's People

Contributors

mickaelr avatar

Stargazers

Yunfan Yang avatar SK Mezanul Haque avatar

Watchers

 avatar James Cloos avatar

jquery-dateselector's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.