Results 1 to 4 of 4

Thread: Textbox

  1. #1
    Ranjith Guest

    Default Textbox

    Hi,<BR> I have two text box t1 and t1.Initially my cursor is on the textbox t1(the first text box).What I need is as soon as I press my tab key the text in the second textbox that is t2 should get highlighted.<BR> Is there any way of doing it.<BR><BR>thanks.<BR><BR>ranjith@hotmail.com<BR>< BR><BR>Ranjith<BR><BR><BR>

  2. #2
    Viper Guest

    Default RE: Textbox

    If you&#039re using frondpage, you can set the tab order with the properties of the textbox.<BR><BR>Greetingz Viper

  3. #3
    Ranjith Guest

    Default RE: Textbox

    hi,<BR> I want to do this in javascript

  4. #4
    Join Date
    Dec 1969

    Default RE: Textbox

    There&#039s a lot of ways to do this, depending on your real objective. First, to set the default tab order:<BR>&#060;input TYPE="text" id="t1" name="t1" ... tabIndex="1"&#062;<BR><BR>First, to get a pointer to the control:<BR> var objForm = document.form1;<BR> var objT2 = objForm.t2;<BR><BR>To change the tab order:<BR> objT2.tabIndex = objT1.tabIndex + 1;<BR><BR>Or, if you always want to set focus to t2 when leaving t1,<BR>you can code t1&#039s onblur event with:<BR> objT2.focus();<BR>

Posting Permissions

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