javascript - Kalendae js: Is there a way to automatically close the calendar once a date has be selected? -



javascript - Kalendae js: Is there a way to automatically close the calendar once a date has be selected? -

i'm working kalendae https://github.com/chipersoft/kalendae , must first-class , it's great not have think dependencies.

the default behaviour pops when text box selected , updates date requires me click close [x] button close calendar.

i'd calendar close upon selection of date. confirmed default behaviour on demo page well: http://chipersoft.com/kalendae/.

the next code worked me (unfortunately, relies on jquery, create sure have jquery included):

ku = kalendae.util; $.each( $('.kalendae .k-in-month'), function(index, value) { ku.addevent(value, 'click', function(event){ this.style.display="none"; }); })

a jquery implementation plenty me, if want in pure javascript you'll need replace utilize of $.each , select .kalendae elements using pure javascript approach.

javascript calendar

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -