PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:23 PM

how do i select input text when clicked like this

  • asad

    1 month ago

    like this
  • Lucas G

    1 month ago

    That's a standard feature. You don't need to do anything to enable text selection
  • asad

    1 month 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

    1 month ago

    <input type="text" value="Select me" onclick="this.select()">
  • asad

    1 month ago

    thanks that worked
  • Lucas G

    1 month ago

    onclick is not instant on iOS or some other browsers
  • you'll want to do it on the focus event for those

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.