Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Victor_F_1
Beginner
60 Views

Jquery datepicker is not working

Hi! I have an hybrid app working with app framework and jquery. I'm trying to create a calendar in the jquery normal way, let's said

$("#recoleccionDate").datepicker();

But not calendar is displaying, any error message it's displayed on the console. In a physical device the input have a normal alpha numerical keyboard.

Does anyone have a clue of what could be happen? 

Tags (2)
0 Kudos
3 Replies
Chris_P_Intel
Employee
60 Views

.datepicker() is a jquery UI element (it's also in jQuery Mobile), but I'm not sure if App Framework has a date picker component.

Are you also attempting to use jQuery UI ? I'm not sure if it is compatible with App Framework. It might be, I've simply never tried.

App Framework does have support for the basic date control:

<input type="date">

Will that suffice?

Victor_F_1
Beginner
60 Views

Hi Chris, thanks a lot for your reply. Yes, I'm also trying to use jQuery UI with not success, no errors but the calendar is not rendering.

The date type is actually working but I need some logic in order to configure the available dates for the calendar, I think this is not possible with HTML only. 

 

Diego_Calp
Valued Contributor I
60 Views

Hello Victor,

HTML5 input type has min and max attributes to set bounds, for example, to dates.

Perhaps you may combine this with jquery and set the limits dinamicallly as you need.

http://www.w3schools.com/tags/att_input_max.asp

Regards,

Diego

Reply