how to add datepicker into html code which is written into javascript :   $(container).append(
                                                                    '<lable class="control-label col-md-3">Joine Duration</lable>' +
                                                                    '<div class="col-md-4">'+
                                                                    '<input type=text  name="joine_duration[]" class="input form-control datepicker"  size="11" title="D-MMM-YYYY" id="joine_duration1" placeholder="" /></div></div>'  +
                                                                    '<div class="form-group"> ');                                      