YearPicker

Contents

What is YearPicker

YearPicker.js is a lightweight yet configurable yearpicker for jQuery that makes it easy to select a year from a popup similar to the date picker. This plugin allows you to easily customaize the YearPicker the way you want it to.

Installation

Include the script yearpicker.js and Stylesheet yearpicker.css on the webpage

<link rel='stylesheet' href='yearpicker.css' />
<script src= 'yearpicker.js'></script>

Basic Usage

The basic use of yearpicker.js plugin with a related javascript code

Examples
  • 2020
  • 2021
  • 2022
  • 2023
  • 2024
  • 2025
  • 2026
  • 2027
  • 2028
  • 2029
  • 2030
  • 2031
Code
$(".yearpicker").yearpicker()

Events

YearPicker allows you to invokes a function like on value changed, onShow, onHide.

Examples
  • 2020
  • 2021
  • 2022
  • 2023
  • 2024
  • 2025
  • 2026
  • 2027
  • 2028
  • 2029
  • 2030
  • 2031
Selected Value
Code:
$(".yearpicker").yearpicker({
  onChange : function(value){
    // YOUR CODE COMES_HERE
  }
});

Options

Property Default Description