[Javascript/HTML] text in input selecteren

Pagina: 1
Acties:
  • 52 views sinds 30-01-2008

  • shlammod
  • Registratie: Juni 2001
  • Laatst online: 18-10-2024

shlammod

dus.... enzo....

Topicstarter
Ik heb bij diverse sites al gezocht naar het volgende:

Ik heb een form, maar wanneer je daarin binnen een input type=text klikt, dan wil ik dat de inhoud helemaal geselecteerd wordt (als deze natuurlijk aanwezig is, anders selectieert ie alles wat in feite niets is)

De sites waarop ik gezocht heb:

hotscripts, google, GoT.

search term:

input, text, select, onclick, onfocus en de diverse combinaties hiermee.

Wie kan mij een zetje in de juiste richting geven?

it's all fun and games, 'till someone loses an eye. Then it's just fun you can't see


  • SchizoDuckie
  • Registratie: April 2001
  • Laatst online: 18-02-2025

SchizoDuckie

Kwaak

msdn.microsoft.com

createTextRange

Stop uploading passwords to Github!


  • shlammod
  • Registratie: Juni 2001
  • Laatst online: 18-10-2024

shlammod

dus.... enzo....

Topicstarter
Ben niet zo'n held met JavaScript. Ik ga die select.all eens proberen

it's all fun and games, 'till someone loses an eye. Then it's just fun you can't see


  • crisp
  • Registratie: Februari 2000
  • Laatst online: 15:55

crisp

Devver

Pixelated

select()

Intentionally left blank


Dit topic is gesloten.