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:35:03
 
 
To
05/03/2014 10:30:26
General information
Forum:
Javascript
Category:
JQuery
Miscellaneous
Thread ID:
01595818
Message ID:
01595820
Views:
68
Should be == not =


>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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform