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 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Selecting from drop down and the do the validation

    javascript when a item is selected from the list can it check if other list has that item and if it is true select that item in the drop down list.???
    Last edited by tinku; 01-06-2005 at 09:10 PM.

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ...
    var A=new Array(...);
    var B=new Array(...);
    var Te=null;
    function That(){
    for (var i=0;i<A.length;i++)
    {
    if (A[i]==event.srcElement.value) {Te=B[i]}// Te will be element of B array w/ same Num as A array element associated w/ entered value
    }}
    ...
    <form name="formName">
    <input type=text name="InputName" size=22 value="Type here" onDblclick="That()">
    </form>

    Is this what you want?
    Oh, was I supposed to put something here? ........

  • #3
    New Coder
    Join Date
    Dec 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes some thing like that can you explain me in detail please ...
    it will be very helpful.
    I will write the code but can you give me a sample of it and explain how that is doing???
    Its a drop down list.
    Thank you in advance.


  •  

    Posting Permissions

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