I used a knockout datePicker as mentioned below
<input type="text" data-bind="datepickertext:[], value:[], disable:$root.Isdisable" id="date" class="col-xs-11"> datepicker pops the callender for first load and icon click. After the ajax call the calender is not poped out on icon click.
The ajax call is
self.Save = function(VAL, eventType) { if (data == true) { if (value == 'Submit') { $.ajax({ url: renderurlpath, contentType: 'application/json; charset=utf-8', cache: false, type: 'GET', success: function(result) { $('#divContentPlaceHolder').innerHTML = ''; $('#divContentPlaceHolder').html(result); debugger $('#image_loading').modal('hide'); }, error: function(xhr, status, error) { $('#image_loading').modal('hide'); alert("AJAX Error!"); } }); } The partial View i am loading into #divContentPlaceHolder is
<fieldset id="fieldset" style="clear:both;display:none"> <div id="CollapseReason" class="panel-collapse collapse in" data-bind="with:$root.PQCCDA"> <div class="panel-body" style=" background: #F7F7F7; border: solid 1px #ccc;" data-bind="with:$data.PQCCDAROV"> <!---new code--> <div class="col-xs-6 no-padding"> <div class="col-xs-12 pq-txt">Reason </div> <div class="col-xs-12"> <textarea placeholder="Reason for " class="col-xs-12" data-bind="value:$data.ReasonforVisit" rows="4" cols="50"></textarea> </div> </div> <div class="col-xs-6 sub-title-pq"> <div class="col-xs-12 pq-txt">date </div> <input type="text" data-bind="datepickertext:[], value:[], disable:$root.Isdisable" id="date" class="col-xs-11"> <!---new code--> <div class="vspace10 col-xs-12"> </div> </div> </div> </fieldset> <script src="~/js/knockout-3.2.0.js"></script> <script src="~/js/knockout-jquery-ui-binding.js"></script> <script src="~/Scripts/PortalScripts/jquery-ui.js"></script> <script src="~/Scripts/PortalScripts/PQCCDA.js"></script> the html code of #divContentPlaceHolder is
@Scripts.Render("~/bundles/jquery") <script src="~/Scripts/jquery.unobtrusive-ajax.js"></script> @Scripts.Render("~/bundles/jqueryval") @Scripts.Render("~/bundles/bootstrap") <div id="divContentPlaceHolder" class="col-sm-12 no-padding"> </div> thanks in advance