Twitter bootstrap modal input field focus

后端 未结 9 739
不知归路
不知归路 2020-12-08 03:56

I have the following modal form from example:




        
9条回答
  •  离开以前
    2020-12-08 04:28

    If you have problems with "shown.bs.modal", just set a timeout.

    setTimeout(function() {
    $('#myInput').focus();
    }, 500);
    

提交回复
热议问题