943,972 Members | Top Members by Rank

Ad:
Nov 28th, 2006
0

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

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jgill is offline Offline
5 posts
since Nov 2006
Nov 28th, 2006
0

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

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.
Reputation Points: 39
Solved Threads: 23
Junior Poster
katarey is offline Offline
167 posts
since Jul 2005
Nov 28th, 2006
0

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

Click to Expand / Collapse  Quote originally posted by katarey ...
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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jgill is offline Offline
5 posts
since Nov 2006
Nov 29th, 2006
0

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

change the application to use the "tag" property instead; it's a general usage property, and its use shouldn't have any side effects.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Skerryman
Next Thread in HTML and CSS Forum Timeline: Java script - wordwrap ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC