Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't know what wrong with this
Message
De
05/03/2014 10:30:26
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
JQuery
Titre:
Don't know what wrong with this
Divers
Thread ID:
01595818
Message ID:
01595818
Vues:
77
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform