Search code examples
twitter-bootstrapinternet-explorer-7datepicker

How do I get twitter bootstrap datepicker to work in ie7?


My company works in the past. All my users for my app have to use ie7. How do I get the twitter bootstrap datepicker to work with IE7. It works fine in IE8+ chrome, firefox, and safari. But my users are not allowed to use anything but IE7.

When I click the textbox with the datepicker I get the dropdown box and its about 2px in length and 50px in width. but there is no calendar displaying.

Any suggestions?


Solution

  • You can try ajbeaven's fix from this issue, although it hasn't been merged into the plugin yet.

    Change line 185 from

     return $(this).css('z-index') != 'auto';
    

    to

    var itemZIndex = $(this).css('z-index');
    return itemZIndex != 'auto' && itemZIndex !== 0;