This article mainly introduces how to solve the problem that the input box at the upper layer of modal cannot obtain the focus in the Bootstrap pop-up box, which has some reference value, if you are interested, you can refer to the Bootstrap pop-up box and the input box on the modal layer cannot obtain the focus. The details are as follows:
1. In the Bootstrap framework, the modal pop-up box currently only supports one layer.
That is, you cannot use the modal pop-up box in the current pop-up box.
If you use a custom pop-up box such as: http://my.oschina.net/tianma3798/blog/737232
If the custom pop-up box contains an input box, if the input box cannot obtain the focus, the possible reasons are as follows:
Many use definition pop-up layers
×Add School
Save Close
The solution is to remove the tabindex = "0" attribute and then obtain the focus.
For more information about how to solve the Focal Point Problem in the input box at the upper layer of modal in the Bootstrap pop-up box, refer to the PHP Chinese website!