![Focus an input field on button click with `x-ref` and the `$refs` property in Alpine JS | egghead.io Focus an input field on button click with `x-ref` and the `$refs` property in Alpine JS | egghead.io](https://dcv19h61vib2d.cloudfront.net/thumbs/egghead-focus-an-input-field-on-button-click-with-x-ref-and-the-refs-property-in-alpine-js-dzH20mC9C/egghead-focus-an-input-field-on-button-click-with-x-ref-and-the-refs-property-in-alpine-js-dzH20mC9C.jpg)
Focus an input field on button click with `x-ref` and the `$refs` property in Alpine JS | egghead.io
![jQuery : how to set focus on a div using javascript or jquery when # already added in url? - YouTube jQuery : how to set focus on a div using javascript or jquery when # already added in url? - YouTube](https://i.ytimg.com/vi/CmjLZDvqsKQ/maxresdefault.jpg)
jQuery : how to set focus on a div using javascript or jquery when # already added in url? - YouTube
ElementReference.FocusAsync() does not focus a div with a tabindex in Blazor WASM · Issue #39448 · dotnet/aspnetcore · GitHub
![There's no focus effect when using ajax to embed html into current page and set focus - Microsoft Q&A There's no focus effect when using ajax to embed html into current page and set focus - Microsoft Q&A](https://learn.microsoft.com/api/attachments/159205-1.png?platform=QnA)
There's no focus effect when using ajax to embed html into current page and set focus - Microsoft Q&A
![Focus inside Shadow DOM. In 2017, across both Chrome and Safari… | by Sam Thorogood | Dev Channel | Medium Focus inside Shadow DOM. In 2017, across both Chrome and Safari… | by Sam Thorogood | Dev Channel | Medium](https://miro.medium.com/v2/da:true/resize:fit:560/1*EJuqqIvh4-yChHuQB3MoSw.gif)