Q: Creating dynamic datapicker I am getting a problem when trying to create a jQuery datapicker dynamicaly.
Here is the code:
var group = document.createElement("div");
group.setAttribute("id", "group_" + control.id);
$("#group_" + control.id).addClass("input-group");
parent.append(group);

var input = document.createElement("input");        
input.setAttribute("id", control.id);
input.setAttribute("type", "text");


$("#" + control.id).datepicker();
$("#group_" + control.id).append(input);

I am trying to fire this logic on custom event. All html elements created dynamically.
When I am trying to click on dynamic created element date menu not appearing.
All required js/css files loaded to this page.
