Easy Jalali Date Picker In JavaScript – jdatepicker.js

Category: Date & Time | August 3, 2021
Author:habibmhamadi
Views Total:90 views
Official Page:Go to website
Last Update:August 3, 2021
License:MIT

Preview:

Easy Jalali Date Picker In JavaScript – jdatepicker.js

Description:

An easy-to-use solar (Jalali) calendar popup for picking dates.

How to use it:

1. Import the jdatepicker.js into the document.

<script src="src/jdatepicker.js"></script>

2. Attach the Jalali Date Picker to an input field and done.

<input id="datePicker" />
jDatePicker('datePicker');

3. Customize the appearance of the Jalali calendar popup.

jDatePicker('datePicker',{
  headerColor: '#222',
  bodyColor: '#fff',
});

4. Determine whether to show Iranian month names.

jDatePicker('datePicker',{
  headerColor: '#222',
  bodyColor: '#fff',
  dariMonth: false,
});

You Might Be Interested In:


Leave a Reply