Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying '<' in a <select> 1

Status
Not open for further replies.

ronsig

Programmer
May 24, 2001
54
IL

Hi Y'all!

is it possible to display the '<' and '>' characters in a <Select> list?

I know this doesn't work:
<option>&lt;</option>

Is there another way?

Thanks,
Ron
 
This will work:

<OPTION>&amp;#60;your text&amp;#62;</OPTION>

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Obviously TGML aint all it is cracked up to be.

Try & lt; without the space between & and l! --
DunxD
 
dunxd, that's what I was trying to do but it wouldn't work, even when in codes *sigh*

sulfericacid
 
Hi sulfericacid and dunxd,

For some reason this tek-tips site shows characters for all those that started with &amp;

But if you type &amp;amp;lt; instead of &amp;lt; then you avoid that there will be html characters shown.
(or &amp;amp;gt; instead of &amp;gt;)

But do not preview the post, otherwise it shows fine in the preview and the actual post shows the html character.

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top