Menu
I’m getting an error message when I attempt to pass a string variable with an apostrophe in it, to a Javascript function. The apostrphe is inside a string variable retrieved from an Oracle database. How can I pass a string variable with an apostrophe in it to a javascript function?
Example:
<cfset comments = ‘It’s a problem’
<a class=myMenu href=”javascript:submitform( ‘#comments#’)”>#comments#</a>
function submitform(comments)