作者:幸福蜗牛yeshi牛 | 来源:互联网 | 2023-05-17 14:22
Iamnewinphpdevelopmentandalsosorryifthisquestionisalreadyaskedinstack.Iamgetting
I am new in php development and also sorry if this question is already asked in stack. I am getting trouble in auto focus inside model popup input field.
我是php开发的新手,如果这个问题已经在堆栈中被问到,也很抱歉。我在模型弹出输入字段中自动聚焦时遇到麻烦。
Following is my code i am applying, it is working in local host but not in live . Please help
以下是我申请的代码,它在本地主机上工作,但不在现场。请帮忙
Here is my code:
这是我的代码:
$(document).ready(function(){
$("#myModal").on('shown.bs.modal', function(){
$(this).find('input[type="text"]').focus();
});
});
1 个解决方案