javascript - Start Pikaday calendar closed -


The picade calendar is opened when the page is loaded, there are some options for it to stop and after triggering triggers to open ?

When you generate the Pikaday element, it is not shown by default This is triggered when the user generates the focus event on the derived input field.

If you provide some sample code, we can help you, but depending on what you ask, you feel that you can see examples from pikaday.jquery-plugin are using it . This example shows the calendar when the page is loading because it adheres to js :

  var $ datepicker = $ ('# datepicker'). Pikaday ({firstday: 1, miniaturized: new date ('2000-01-01'), maximum date: new date ('2020-12-31'), year range: [20002020]}); // series first datepicker for some methods, jQuery style! $ Datepicker.pikaday ('show') pikaday ('nextMonth').  

If you take a look at this code, then you can see that piceday is not shown by default, the function that will clear the calendar If you remove the follow line, the calendar is not shown when the page is loaded, only when you input :

  $ datepicker.pikaday ('Show'). ('Next month');  

Hope this helps,


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -