swansonplace
asked on
How to encode javascript function parameter to take a single quote
How to I encode data going across to a javascript routine.
The javascript function has a variable "testing's" with a single quote. I need to pass the single quote, but the javascript keeps getting confused with it.
a href="#" onclick="javascript: openAdditionalInfoWindow(' testing's' )">Test </a
<!
The javascript function has a variable "testing's" with a single quote. I need to pass the single quote, but the javascript keeps getting confused with it.
a href="#" onclick="javascript: openAdditionalInfoWindow('
<!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER