Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation List box loop throught the items and select

    Hi,
    I have two list/record, When one item is selected it should check through the other list and if present choose that item and get the focus on the list.
    here is the code. Can anyone please help on what exactly I should do here or help in correcting the error.
    Code:
    function getname()
    {
    for(i=0;i<window.document.custom_form.custbodycust_itemid_list.length;++i)
    {
    if(window.document.custom_form.custbodycust_itemid_list.options[i].selected){
    window.document.custom_form.custbodycust_itemid_list.SelectedIndex = i;
    break;
    }
    }
    }
    Last edited by tinku; 01-27-2005 at 07:50 PM.

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please do not cross-post your questions from one forum to another:
    Dynamicall generated List box- how to loop thru the list??

    And yes, pasting the same message with a different subject title IS cross-posting...

    .....Willy


  •  

    Posting Permissions

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