473,660 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

7 New Member
Having problem with the following HTML code in IE7, everything works fine in IE6:
<option value='215001' label='250000,1 5,10,1'>215001 |A.J. Longo & Associates</option>
In IE6 I see “215001 |A.J. Longo & Associates” 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 “215001 |A.J. Longo & Associates”. I been trying to figure out why is this happening??? So if someone could please help me out with this...Apprecia te yr time & effort…thanks!
Nov 27 '06 #1
4 2601
AricC
1,892 Recognized Expert Top Contributor
Use this syntax:
[html]<select>
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
<option value ="opel">Opel </option>
<option value ="audi">Audi </option>
</select>[/html]

Use double quotes "" not single quotes ''


HTH,
Aric
Nov 28 '06 #2
jgill
7 New Member
Use this syntax:
[html]<select>
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
<option value ="opel">Opel </option>
<option value ="audi">Audi </option>
</select>[/html]

Use double quotes "" not single quotes ''


HTH,
Aric
Thanks for the info but is there anyway that I can let the lebel be there & make it work in IE7...b/c the application uses label...thanks
Nov 28 '06 #3
AricC
1,892 Recognized Expert Top Contributor
If you want to use label you must have an option group:
[html]<select>
<optgroup label="Swedish Cars">
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
</optgroup>
<optgroup label="American Cars">
<option value ="ford">Ford </option>
<option value ="chevy">Che vy</option>
</optgroup>
</select>[/html]
Nov 28 '06 #4
jgill
7 New Member
If you want to use label you must have an option group:
[html]<select>
<optgroup label="Swedish Cars">
<option value ="volvo">Vol vo</option>
<option value ="saab">Saab </option>
</optgroup>
<optgroup label="American Cars">
<option value ="ford">Ford </option>
<option value ="chevy">Che vy</option>
</optgroup>
</select>[/html]
Thanks ... I guess thats the only way out...lol
Nov 28 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6907
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
1
2506
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our users use IE 6.0 and most of them don't have problem with this button. But one user reported everytime he click on this button, there is a pop-up window shows up and ask him refresh and reload the page, after he clicks OK, the previous page will be...
3
2417
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is actually the name of a form element on the parent window. On the new page, I have this javascript: ---- var var2 = location.search.substring(9); document.write(var2)
1
2310
by: ben.held | last post by:
Having recently upgraded to Python 2.4, I am having a large memory leak with the following code built with VC++ 6.0: PyObject *pName, *pModule; Py_Initialize(); pName = PyString_FromString(argv); pModule = PyImport_Import(pName); Py_DECREF(pName);
13
2481
by: scorpion53061 | last post by:
Very urgent and I am very close but need a little help to get me over the edge........ I need to write these columns to a html file with each row containing these columns (seperated by breaks). Currently this code write all columns to a single row which works but is not what the boss wants. If anyone has suggestions how you would do a report like this I very much would like to hear them as well. vb.net windows app. ...
9
1965
by: Shapper | last post by:
Hello, I created a dataset from a XML file. One of the dataset fields is . In an ASP:Repeater I am displaying the field. <%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %> The date displayed has the following format, the same as in the XML file:
2
2238
by: | last post by:
Hi, I am having problem sending email to external mailbox using HTML format. Following is a simplified code that I used to send the email. Dim myMsg As New MailMessage Dim htmlBody As String htmlBody = "<HTML><BODY><A HREF='http://www.microsoft.com'>Microsoft</A></BODY></HTML>" myMsg.From = "me@domain.com"
6
1918
by: mahesh | last post by:
Hi friend, I am in deep trouble, I need to change the string in following format " 1.55576+2" in the floating point notation. that is i should have 155.576 as my output. Please suggest some efficient way. Looking forward to get good solution to my problem. Raj
77
3852
by: Hans Schneider | last post by:
1. in the prg bellow what vars are stored on stack, heap, data segment? int i; void main() { int j; int *k = (void *)malloc(1); }
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.