Home
Press kit
Copy logo as SVG
Learn
Pricing
MCP
Blog
Contact
Community
(opens in a new tab)
Join the Nordcraft Discord
Docs
(opens in a new tab)
All topics
Help forum
how do i select input text when clicked like this
asad
2 years ago
like this
Lucas G
2 years ago
That
's a standard feature
. You don
't need to do anything to enable text selection
@Lucas G
That
's a standard feature
. You don
't need to do anything to enable text selection
asad
2 years ago
in this iput when i click on it the text is selected
i want the same for my input functionality as that
Lucas G
2 years ago
<input type="text" value="Select me" onclick="this.select()">
@Lucas G
<input type="text" value="Select me" onclick="this.select()">
asad
2 years ago
thanks that worked
Lucas G
2 years ago
onclick is not instant on iOS or some other browsers
you
'll want to do it on the
focus
event for those
Leave a comment