JQuery Plugin - Date Picker -


i attempting implement jquery data picker http://www.eyecon.ro

i have embedded in page without problems, unable achieve functionality require it.

the date picker not attached form element, purely going used calendar visible user , allow them scroll through various months, weeks etc.

the website shows various example of varying items of functionality - http://www.eyecon.ro/datepicker/#about however, able achieve first example shown on page displays years ranging 2002 - 2013, however, upon load display current month opposed user having select correct year, , month in order use calendar.

i presuming using 'date' option there should way me specify if display todays date.

has achieved above functionality plugin?

thank you.

you can current date with:

var today = new date(); var month = today.getmonth() + 1; var datestring = today.getfullyear() + '-' + month + '-' + today.getdate(); 

note have add 1 month, js counts january 0.

edit: reading docs, date argument can take date object - need is:

$('#date').datepicker({     flat: true,     date: new date(),     calendars: 1,     starts: 1 }); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -