Can JavaScript select text in a text-field?

Discussion in 'Javascript' started by Kurda Yon, Jan 20, 2009.

  1. Kurda Yon

    Kurda Yon Guest

    Hi,

    I would like to have a text-field (in html form) with a selected text.
    In other words, it user loads the form, he/she can see a text in the
    text field (this text should explain what should be put in the text
    field). It is convenient to have a selected text, so that it user
    start to write something in the text filed the selected text will be
    immediately deleted.

    Thank you in advance for any help.
     
    Kurda Yon, Jan 20, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jerry Manner
    Replies:
    5
    Views:
    687
    Jonathan N. Little
    Jun 9, 2005
  2. ehm
    Replies:
    2
    Views:
    335
  3. palmiere
    Replies:
    1
    Views:
    666
    Erwin Moller
    Feb 9, 2004
  4. datactrl
    Replies:
    4
    Views:
    296
    datactrl
    May 20, 2004
  5. Roy Adams

    writing from hidden field to text field

    Roy Adams, Dec 20, 2004, in forum: Javascript
    Replies:
    1
    Views:
    311
  6. Replies:
    1
    Views:
    265
    R. Rajesh Jeba Anbiah
    Jan 13, 2005
  7. Sound
    Replies:
    2
    Views:
    719
    Randy Webb
    Sep 28, 2006
  8. jr
    Replies:
    3
    Views:
    666
Loading...