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 Coder
    Join Date
    Dec 2002
    Location
    Washington State
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question If value "6.00" change ship_method value to "1.00"

    *Edit* I found that this script works, I just needed to add my form name instead of just form in the if(document.form.shipping.value == "6.00") part. Mine was if(document.myform.shipping.value == "6.00")


    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    new1 = "Test";
    new2 = "Test2";
    new3 = "Test3";

    function checkFormShipping() {

    if(document.form.shipping.value == "6.00") {
    document.form.ship_method.value=new1;
    }

    else if(document.form.shipping.value == "13.00") {
    document.form.ship_method.value=new2;
    }

    else if(document.form.shipping.value == "20.00") {
    document.form.ship_method.value=new3;
    }
    else {
    document.form.ship_method.value="Not Selected2";
    }
    }
    // End -->
    </script>

    <SELECT NAME="shipping" SIZE="1" style="font-family: Arial; font-size: 10px" onblur="checkFormShipping();">
    <OPTION VALUE="">Shipping Method...</option>
    <OPTION VALUE="6.00">UPS Ground ($6.00)</option>
    <OPTION VALUE="13.00">UPS 2nd Day Air ($13.00)</option>
    <OPTION VALUE="20.00">UPS 2nd Day AK/HI ($20.00)</option>

    <input type=hidden name=ship_method value="Not Selected">


    ~Isaac Lloyd~
    Last edited by isaaclloyd; 03-22-2005 at 06:25 PM.
    ~ Isaac Lloyd ~
    Website Design & Development
    http://www.IsaacLloyd.com


 

Posting Permissions

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