I've got a <select> form element that contains values that include escaped ampersands. 
eg,
<select>
<option value="This &amp; That">This &amp; That</option>
</select>

I'm finding that when I use javascript to get the value of the (selected index of the) 
field, the value that javascript gets has the &, not &amp;

My character set for the form is ISO-8859-1.

I'm using the form input on another page and want to stay XHTML... Does anyone have 
any insight into why I wouldn't get the whole value and what I can do to remedy the 
situation?

Scott Reston
Director, Web Development
Capstrat
919/882.1966 v
919/834.7959 f
1201 Edwards Mill Road, Suite 102
Raleigh, NC 27607
www.capstrat.com 
******************************************************
The discussion list for  http://webstandardsgroup.org/

Proud presenters of Web Essentials 04 http://we04.com/
 Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to