Skip to content

persian date picker - تقویم فارسی جاوااسکریپت

Notifications You must be signed in to change notification settings

hypermit/pDatepicker

Repository files navigation

in the name of Allah(God)

#pDatepicker

alt tag

To use pDatepicker :

1.Include jquery.js, pdatepicker.js and pdatepicker.css

2.Define input tag :

<input id='pdatetxt'>

3.Add js code to create pdatepicker :

pDatepicker('pdatetxt',{inline:true,selected:'1393/11/26',cyear:1393,cmonth:10});

Second argument(configs) is optional.

Explanation of configs :

1.inline : if true, textbox is not shown.

2.selected : date that is selected by default.if false, no date is select by default and if does not set via configs, 'today' is used for selected date.

3.cyear and cmonth : cyear(current year) and cmonth(current month) are used together and when calendar opens, show this month of year. if cyear or(and) cmonth do not set via configs, 'selected' option is used for current year and month.

4.readonly : if true, picker only shows date and user can not change it.

To show,hide and toggle picker use show,hide and toggle function :

	<script>
            pdb =new pDatepicker('inp');
            $('#btn').click(function(){ pdb.toggle(); });
        </script>

###Email [email protected]

###License this project licensed under LGPL.

About

persian date picker - تقویم فارسی جاوااسکریپت

Resources

Stars

Watchers

Forks

Packages

No packages published