•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 397,810 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,529 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1688 | Replies: 3
![]() |
•
•
Join Date: Nov 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 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!
<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!
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">
[HTML]
<option value='215001'>This is a test</option>
or
<option value='215001' label='This is a test'></option>
[/HTML]
more about this tag
http://www.w3schools.com/tags/tag_option.asp
actually label attribute use in <optgroup>
label - Defines a label to use when using <optgroup>
<optgroup label="test">
[HTML]
<option value='215001'>This is a test</option>
or
<option value='215001' label='This is a test'></option>
[/HTML]
more about this tag
http://www.w3schools.com/tags/tag_option.asp
Last edited by katarey : Nov 28th, 2006 at 2:06 pm.
Freelance Web Designer & Developer
Http//www.Katarey.com
Http//www.Katarey.com
•
•
Join Date: Nov 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 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">
[HTML]
<option value='215001'>This is a test</option>
or
<option value='215001' label='This is a test'></option>
[/HTML]
more about this tag
http://www.w3schools.com/tags/tag_option.asp
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
access activation api blogger blogging blogs code combo css dani daniweb data debugging development div dropdownlist explorer gdata google google checkout vat gpl gradient graphics html html api ie7 innovation internet javascript key linux microsoft module net news openbsd product programming reuse rss serial source symantec tables tags vista web wysiwyg xml
- Encrypting HTML Code and SEO Pickup... (HTML and CSS)
- schedule html code (HTML and CSS)
- my html code isnt working please help (HTML and CSS)
- how to code single/double quotes inside the quotes. (PHP)
- WebCrawler problem (Java)
- Problems with html code (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Skerryman
- Next Thread: Java script - wordwrap ?


Linear Mode