Skip to content

A lightweight javascript library to add date-selector calendar for your form-inputs

Notifications You must be signed in to change notification settings

ShahrukhAhmed89/Form-Calendar-Input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date Input Calendar for Forms

Use this tool to build date-selector for your form-inputs. Live Demo

Visual Example With this calendar, we use the benefits of CSS Grid to create calendar layouts.

To use this calendar, enclose a Text input inside a container div.

    <div class="date-input-container">
        <label for="calendar-form"></label>
        <input type="text" id="calendar-form">
    </div>

You can initiate the calendar by using the container element as the argument like date-input-container for example.

    let calendar = new InputCalendar( document.querySelector('.date-input-container') ); 

If there are multiple instances of the calendar, you can use querySelectorAll.

    document.querySelectorAll('.date-input-container').forEach( function( elem ) {
        let calendar = new InputCalendar( elem ); 
    });

About

A lightweight javascript library to add date-selector calendar for your form-inputs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published