Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4256 Zobrazení

Hi


I placed a date picker input in my website page like this:

<input id="occur_date" type="text"
class="form-control o_website_form_input o_website_form_date"
name="occur_date" placeholder='DD/MM/YYYY' data-date-format="DD/MM/YYYY"/>

According to some post said, class `o_website_form_date` would generate a date pickup panel for this component when forced on it, but in my page it looks like a normal text input without the panel, even the date formatter doesn't work. I'm wondering Is there anything missing?


Jeff



Avatar
Zrušit
Nejlepší odpověď

Hi Jeff, 


Please try with Following example: 


In XML:

<input type = "text" id = "occur_date" name = "occur_date" placeholder = 'DD / MM / YYYY' />


In JS:

$ ("#occur_date") .datepicker ({changeMonth: true, changeYear: true, dateFormat: "dd / mm / yy"});


Regards,




Email:     odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 19
5084
0
bře 15
4112
0
led 25
1679
0
lis 24
1055
1
říj 22
2884