RGthehuman
TTCTheo's Typesafe Cult
•Created by RGthehuman on 10/23/2023 in #questions
adding autofocus attribute with js
I'm creating html elements with javascript. I tried to add the attribute
autofocus
to the input element like this input.autofocus = true
, but it didn't work. I can see why it's not working, but is there a way around?2 replies