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

Reply

Join Date: Nov 2006
Posts: 5
Reputation: jgill is an unknown quantity at this point 
Solved Threads: 0
jgill jgill is offline Offline
Newbie Poster

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

 
0
  #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!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 154
Reputation: katarey is an unknown quantity at this point 
Solved Threads: 20
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

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

 
0
  #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 3:06 pm.
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 5
Reputation: jgill is an unknown quantity at this point 
Solved Threads: 0
jgill jgill is offline Offline
Newbie Poster

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

 
0
  #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 Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

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

 
0
  #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.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC