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

pre-fill values don't work #1222

Open
tecomunico opened this issue Jan 17, 2021 · 0 comments
Open

pre-fill values don't work #1222

tecomunico opened this issue Jan 17, 2021 · 0 comments

Comments

@tecomunico
Copy link

Hi, this is my code:

Html:
<button type="button" id="ChangeButton">Click</button>
<input type="date" name="DateOfBirth" id="DateOfBirth" class="form-control datepicker" data-value="">

I change the attribute programmatically:

$("#ChangeButton").click(function ()
{
$("#DateOfBirth").data("data-value","1966-12-14");
})

My pickadate Setting
$("#DateOfBirth").pickadate(
{
format: "ddd dd, mmm yyyy",
formatSubmit: "yyyy-mm-dd"
});

What is Wrong ?

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

1 participant