Select text

Results 1 to 2 of 2

Thread: Select text

  1. #1
    Join Date
    Dec 1969

    Default Select text

    Hi,<BR>Is there JScript eqvivalent to VB&#039s<BR><BR>Sub txtFirstName_GotFocus<BR>txtFirstName.SelStart = 0<BR>txtFirstName.SelLength = Len(txtFirstName)<BR>End Sub<BR><BR>The text of the input(text) box gets selected on &#039getfocus&#039 event.<BR><BR>Thank you,

  2. #2
    Join Date
    Dec 1969

    Default RE: Select text

    yes, you can <BR>example:<BR>function textbox_onfocus(){<BR> ;<BR>}<BR>it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts