Date Picker on Odoo Website Form Odoo
5 March, 2021 by
Date Picker on Odoo Website Form Odoo
Administrator
| No comments yet

 

XML and JS

 

XML:
<input type=”text” id=”date_start” name=”date_start” placeholder=’DD/MM/YYYY’/>

JS: 
$( “#date_start” ).datepicker({       changeMonth: true,       changeYear: true,       dateFormat: “dd/mm/yy”   });

 

 

i got some solution for datepicker not working in firefox.

in my js i write code:

$(document).ready(function () {

$(‘.datepicker’).datepicker({});

});

for your XML file.

<input type=”text” class=”datepicker”/>

hope so this will help you.

Sign in to leave a comment