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 enter image description here

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -