PDA

View Full Version : & in string comparison quote



sitecorp
12-30-2005, 10:25 PM
Hi I have a javasript string comparison:

else if (variable1=="Business & Corporate").....

The ampersand (&) seems to be causing a problem? How do I overcomethis?

felgall
12-30-2005, 10:57 PM
There is nothing wrong with that statement. The problem must be in how the value is being assigned to the variable.