Bug fixes in the BOOTSTRAP time control displayed in the modal box _ javascript skills

Source: Internet
Author: User
This article mainly introduces the BOOTSTRAP time control display in the modal box below the bug fix, need a friend can refer to the next stitch: modify the bootstrap-datepicker.js file

The code is as follows:


Var zIndex = parseInt (this. element. parents (). filter (function (){
Return response (this).css ('Z-index ')! = 'Auto ';
Paiyun.first(pai.css ('Z-index') + 10;

Change "+ 10" to "+ 99999999;

Cause: The z-index is used to set the stacking sequence of elements, from negative to positive, indicating that the elements are stacked from bottom to top. here, the css method is used to set the z-index to 10 and the row style is used, style sheets cannot be modified.

Summary: The method is very simple, but the process of finding the cause is very complicated. it takes a long time to find a simple solution. if you have the same requirements, refer to it. I hope you will like it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.