javascript - Date picker bootstrap work only first time -
i have datepiker
<div class="control-group"> <label class="control-label">publish date:</label> <div class="controls"> <div class="input-append date form_datetime"> <input size="16" type="text" readonly value="<%=item!=null?item.publishdate.tostring("dd.mm.yyyy"): datetime.now.tostring("dd.mm.yyyy") %>" id="publishdate" name="publishdate" class="m-wrap" data-format="dd.mm.yyyy"> <span class="add-on"><i class="icon-calendar"></i></span> </div> </div> </div>
first time work normal
but second time not
here init datepiker
$(document).ready(function () { $(".form_datetime").datepicker({ isrtl: false, format: 'dd.mm.yyyy', pickerposition: "bottom-left", autoclose: true }); });
maybe problem in init?
in script mentioned class name "form_datetime", gave tag class "m-wrap". assign same class name , try again..
Comments
Post a Comment