Skip to content

This project provided a easy-used datepicker plugin.

Notifications You must be signed in to change notification settings

hi-sunshine/datePicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datePicker


This project provided a easy-used datepicker plugin.

Usage

  1. Import the bupt.datepicker.css and bupt.datepicker.js into your page.
<link type="text/css" rel="stylesheet" href="./bupt.datepicker.css" />
<script type="text/javascript" src="bupt.datepicker.js"></script>
  1. Use the datepicker like follow.
  <input type="text" id="inputID" />
  <script type="text/javascript">
  	datepicker.init('inputID');
  </script>
  1. Suggest add some style to <input> to show better , just like:
<input type="text" id="inputText" class="datepicker-input">
<style>
	.datepicker-input{
		border:1px solid #ccc;
		border-radius: 4px;
		padding: 5px;
		height: 24px;
		line-height: 24px;
		width:230px;
	}
</style>

Example

example.html provided an complete example of this datapicker plugin.

About

This project provided a easy-used datepicker plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published