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. Advertising

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.

Share This Page