Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4330 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 19
5113
0
mar 15
4152
0
gen 25
1729
0
nov 24
1128
1
ott 22
2921