0

Having problem with the following HTML code in IE7, everything works fine in IE6:
<option value='215001' label='250000,15,10,1'>This is a test</option>
In IE6 I see “This is a test” in the drop down list so that the user can make the selection but in IE7 I see '250000,15,10,1' in the drop down list instead of “This is a test”. I been trying to figure out why is this happening??? So if someone could please help me out with this...Appreciate yr time & effort…thanks!

3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by MattEvans
0

you are using label attribute in option which will be preferred by IE 7, if you want to show “This is a test” so use this in label=” This is a test” or remove label attribute from tag


actually label attribute use in <optgroup>

label - Defines a label to use when using <optgroup>

<optgroup label="test">

<option value='215001'>This is a test</option>

or

<option value='215001' label='This is a test'></option>

more about this tag

http://www.w3schools.com/tags/tag_option.asp

0

you are using label attribute in option which will be preferred by IE 7, if you want to show “This is a test” so use this in label=” This is a test” or remove label attribute from tag


actually label attribute use in <optgroup>

label - Defines a label to use when using <optgroup>

<optgroup label="test">

<option value='215001'>This is a test</option>

or

<option value='215001' label='This is a test'></option>

more about this tag

http://www.w3schools.com/tags/tag_option.asp

Thanks for the info but is there anyway that I can let the label be there & make it work as it is in IE7 (<option value='215001' label='250000,15,10,1'>215001 |A.J. Longo & Associates</option>)...b/c the application uses label value, I guess...thanks...appreciate it!

0

change the application to use the "tag" property instead; it's a general usage property, and its use shouldn't have any side effects.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.