Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't know what wrong with this
Message
From
05/03/2014 10:30:26
 
 
To
All
General information
Forum:
Javascript
Category:
JQuery
Title:
Don't know what wrong with this
Miscellaneous
Thread ID:
01595818
Message ID:
01595818
Views:
76
I'm trying to get this jQuery function to work and I'm not getting very far with it.
function SvrDropdown(list) {
//    alert(list.options[list.selectedIndex].value);
    lcUsername = document.getElementById("username").value;
    location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + list.options[list.selectedIndex].value;
}

function AcctDropdown(list) {
//    alert(list.options[list.selectedIndex].value);
    lcUsername = document.getElementById("username").value;
    lcServer = document.getElementById("Server").value;
    location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + lcServer + '~' + list.options[list.selectedIndex].value;
}

function ChkChange(control) {
//    alert("in Javascript");
    lcUsername = document.getElementById("username").value;
    lcacctid = document.getElementById("AccountID").value;
    lcServer = document.getElementById("Server").value;
    if (control.checked) {
      location.href = '/go.hcn?hcnmgt~OLRManualTrans~' + lcUsername + '~' + lcServer +'~' + lcacctid + '~' + control.name;
//    alert(location.href);
    }
}

 $("#CustomCode").hide();
 $("#CustCode").hide();
                         
 $(function  RewardOnChange(control) {                       
     if ($('#RwrdCode').val()) = 'custom'                     *-----------here
        {$("#CustomCode").fadeIn();
         $("#CustCode").fadeIn();
        }
 })
When I initially go into the page I get a script1002: Syntax error on the line marked with the '*-------here". How cosmically off is that syntax?

Thanks
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Next
Reply
Map
View

Click here to load this message in the networking platform