简体   繁体   中英

Boostrap datepicker shows calendar on page load in IE

I have a bootstrap datepicker on my form. When the pages loads in Chrome I see the textbox for the date and the datepicker button which when clicked will show the calendar. Unfortunately in IE the calendar shows when the page loads which looks pretty ugly.

Before making this post I looked around on Google and post on here but didn't come across anything that works in js.

Any suggestions of how to make IE not show the calendar until the date picker button is pressed?

Any help is much appreciated:)

try to initialize datepicker with hide

$("#inputId").datepicker('hide');

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