Jump to content

Recommended Posts

The syntax is not as easy as you are saying and I've tried your advance but z giving producing an endless loop.Think of aform which has thousands of text boxes and select dropdowns your roles is to display the next textbox after a select drop down selection and set the focus on the new display.

 

basic syntax for reading the textboxes using javascript

 

for(var i = 1; i <= out_count;i++)

{

  for(var b = 1 ; b <=middle_count ;b++)

  {

      for(var g = 1; g <=9;g++)

      {

          var textBox = document.getElementById("txt"+i"_"+b+"_"g).id

          var selection = document.getElementById("sel"+i"_"+b+"_"g)).id

 

          if(document.getElementById(selection).id == 'inline)

          {

             

                next_index++

                  document.getElementById(info_id).tabIndex = next_index;

document.getElementById(info_id).tabIndex = document.getElementById(info_id).focus();

  }

  else if(document.getElementById(selselection id).style.display == 'inline')

  {

next_index++;

document.getElementById(selection ).tabIndex = next_index;

document.getElementById(selection ).tabIndex = document.getElementById(selection ).focus();

}

          }

      }

  }

}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.