User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2006
Posts: 5
Reputation: jgill is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jgill jgill is offline Offline
Newbie Poster

Help Urgent...Having problem with the following HTML code in IE7

  #1  
Nov 28th, 2006
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!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: india
Posts: 143
Reputation: katarey is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 15
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Urgent...Having problem with the following HTML code in IE7

  #2  
Nov 28th, 2006
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
Last edited by katarey : Nov 28th, 2006 at 2:06 pm.
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote  
Join Date: Nov 2006
Posts: 5
Reputation: jgill is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jgill jgill is offline Offline
Newbie Poster

Re: Urgent...Having problem with the following HTML code in IE7

  #3  
Nov 28th, 2006
Originally Posted by katarey View Post
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
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!
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: Urgent...Having problem with the following HTML code in IE7

  #4  
Nov 29th, 2006
change the application to use the "tag" property instead; it's a general usage property, and its use shouldn't have any side effects.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC