Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Special Characters

Guest
Oct 12, 2011 Oct 12, 2011

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&quot;' <cfif variables.height is "5''6''">selected="selected"</cfif> >5'6"</option>

417
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 13, 2011 Oct 13, 2011
LATEST

try

<option value='5&##039;6&quot;' <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&quot;' <cfif variables.height is "5""6""">selected="selected"</cfif> >5'6"</option>

But in my opinion that is more difficult to read.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources