Closed Avtarsodhi closed 4 years ago
Hi @Avtarsodhi,
Please provide a codepen so we have a working reproducible testcase.
Hi @DanielRuf My jsp's code is
and javascript code is- function openDatePickerModal() { $('.picker-modal').openModal(); }'
and pickadate code is- $('#deliveryDatePicker' .pickadate({ formatSubmit: 'dd/mm/yyyy', })
modal code is -
This is not a codepen. Please go to codepen.io and create a working example of your current implementation (only css, js, html).
Did you already try the open
method?
how to use pickadate.js in code-pen. it shows the error.
@DanielRuf
yeah, i have tried open function but it shows error picker is not defined
Please check the docs at the top:
var $input = $('.datepicker').pickadate()
// Use the picker object directly.
var picker = $input.pickadate('picker')
picker.methodName(argument1, argument2, ...)
What exactly did you try on codepen?
You have to load picker.js before loading the date.picker.js file:
Thanks @DanielRuf for your quick response.
It works.
Hey,
I am opening a modal on click the input field and i want the date-picker as an already open Calendar with an hidden input field. I have already tried autofocus on hidden input and trigger click event on input field but it is not going as per my expectations.
Please help me and give my some suggestions to resolve it.
Thanks in advance.