I have a problem with my datetime picker.
I have JavaScript code at view.htm that load view_part.htm as search result.
At view_part.htm, I create datetime picker using jQuery UI, but it didn’t show up. I wrote the jQuery code at view.htm and it still doesn’t work.
This is my code:
for(i=0;i<sum;i++){
$("#TGL_APPROVE_"+i).datepicker();
$("#TGL_APPROVE_"+i).datepicker( "option", "dateFormat", "yy-mm-dd" );
}
This is my view:

I don’t know what your variables
i&sumrefer to here, but as per the code in your comments you need to do something like this:the callback here ensures that datepicker is bind to your element whenever they are added to the DOM.