Skip to content

How to put the focus on a certain input field on a modal form using Bootstrap? #40855

Answered by julien-deramond
GeVanCo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @GeVanCo
I tried the code you provided in this CodePen, and it works pretty well on Firefox and Chrome. The only thing I changed is that in your <script> you try to reach myFocusedInput, and it is actually focusedInput.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GeVanCo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants