pre-fill values don't work
tecomunico opened this issue · 0 comments
tecomunico commented
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 ?