简体   繁体   中英

datepicker continuously popping out the box on IE8

I am having a problem with jquery datepicker via IE8, when I clicked the input form the calendar box pops = this is normal, but after choosing a date from the calendar box, the box is still there, and it won't go away unless i click away on some other portion of the screen. but on other browsers, i'ts not like that. any idea how to fix this ? here's my code

//html
                    <div class="row">
                    <label>Date of Birth <span class="required">*</span></label>
                    <input type="text" id="datepickercv" name="dob" value="<?php echo $_POST['dob']; ?>" />
                    </div>


//js

$(function(){
  $('#datepickercv').datepicker({changeYear: true,changeMonth: true,yearRange:'1940:2011',defaultDate:+7});
})

which version of jquery-ui are you using? Even I had the same issue on IE8. This seems to be a bug in 1.8.15, check here , upgrading to 1.8.16 fixes the issue!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM