I set up pickadate
of Materialize
on a page only that it is getting in English and when I go out and back to the has pickadate
it opens without me clicking the field.
I inserted the materialize.min.css
into the header and the jquery-2.1.1.min.js
and materialize.min.js
at the bottom of the page.
HTML code:
<div class="input-field col s6">
<input name="dataIni" type="text" class="dataIniFim">
<label for="dataIni">Data Inicial</label>
</div>
<div class="input-field col s6">
<input name="dataFim" type="text" class="dataIniFim">
<label for="dataFim">Data Final</label>
</div>
After importing the javascript files at the bottom of the page I inserted this code:
$('.dataIniFim').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15, // Creates a dropdown of 15 years to control year
dateFormat: 'dd/MM/yy',
});
Test code: link