Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set dynamic input date value #67

Open
ipehimanshu opened this issue Mar 30, 2018 · 2 comments
Open

set dynamic input date value #67

ipehimanshu opened this issue Mar 30, 2018 · 2 comments

Comments

@ipehimanshu
Copy link

Hello

If we want to open date picket on click another button and want to set dynamic value for input date then it not working .

See case
i have set
this.inputDate=new Date('2017/12/30');
this.datepicker.open();

and very first i have set
inputDate=new Date();

So it always take current date when i try to open date picker .

Any idea please ?

Thanks

@misha130
Copy link
Owner

misha130 commented Apr 8, 2018

Well you can either do it with a setTimeout or you can do this.datepicker.value = new date('2017/12/30');
You basically open it before the value changes

@ipehimanshu
Copy link
Author

@misha130 how to use it for same page for more than 1 field,
Like i want to use for date 1 and date 2 for same page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants