跳至内容
菜单
此问题已终结
1 回复
4301 查看

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



形象
丢弃
最佳答案

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

   

形象
丢弃
相关帖文 回复 查看 活动
1
12月 19
5109
0
3月 15
4143
0
1月 25
1709
0
11月 24
1115
1
10月 22
2919