Open Thaina opened 4 years ago
I assume you want to return date value from a form.
My workaround is to have another input hidden with the same value.
<form id="mainForm" :action="'add.php" method="post">
<md-datepicker v-model="somedate" />
<input type="hidden" name="date" :value="somedate" />
</form>
Hope this helps.
@anurat That's what I was done so right now. which I want it to be more convenient that the datepicker itself should just let us name it directly
For old style form submit
The datepicker does not set the name of inner input field
Is it possible to pass attribute name (and also all input related attribute) from datepicker to that inner input?