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 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code does not work in Internet Explorer, but it does in FireFox

    This is code allows for what is selected in Drop-Down boxes to appear in a text box next to it, if they select a second thing, it will also appear in that text box, it works in Firefox, but not Internet Explorer.

    <script>
    function addOption(x,x2) {
    sOption=document.getElementById(x2).value;
    sOptions=sOption.split("\n");
    if (sOption == '') {document.getElementById(x2).value=x+"\n";}
    else { if (sOptions.length > 1) {document.getElementById(x2).value=sOption+x+"\n";}
    else {document.getElementById(x2).value=sOption+"\n"+x+"\n";}
    }
    document.getElementById(x2).focus();
    }
    </script>
    Last edited by dudeman456; 08-19-2005 at 10:56 PM.


 

Posting Permissions

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