| | |
Urgent...Having problem with the following HTML code in IE7
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2006
Posts: 5
Reputation:
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 3:06 pm.
•
•
Join Date: Nov 2006
Posts: 5
Reputation:
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
![]() |
Similar Threads
- 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 ?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






