• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 637
  • Last Modified:

Javascript and form states

I have a javascript I inherited and it seems that the if conditionals are not working correctly.

After reviewing it and trying some adjustments in how the elements are selected, I'm still baffled with the if conditional if ('foo' == "BAR") and why they are not interpreting the way the scripter expected.

Experts please have a look and make some n00b suggestions for me? Thanks!
0
kblack05
Asked:
kblack05
  • 3
1 Solution
 
kblack05Author Commented:
shopping cart script needs mod
legacy-shopping-cart-mods.txt
0
 
Julian HansenCommented:
Not sure what the qustion is here? Can you elaborate?
0
 
kblack05Author Commented:
First thing I'm curious about is that

function changeCountry(country) {
    if (country == 'US') {

produces a syntax error. It seems there are many ways to do the conditional formatting, so perhaps comparing a variable imported by the function must have double quotes?
0
 
kblack05Author Commented:
The script is broken in several places, not practical for experts to answer.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now