Copy link to clipboard
Copied
I am able to save special characters, but I can't use them in the cfselect as a value. I tried using the value like "5''6''", but it doesn't work either. Any clues?
<option value='5&##039;6"' <cfif variables.height is "5''6''">selected="selected"</cfif> >5'6"</option>
Copy link to clipboard
Copied
try
<option value='5&##039;6"' <cfif variables.height is '5''6"'>selected="selected"</cfif> >5'6"</option>
Note the use of single quotes.
You can also use 2 double quotes as follows:
<option value='5&##039;6"' <cfif variables.height is "5""6""">selected="selected"</cfif> >5'6"</option>
But in my opinion that is more difficult to read.