Robert Granlund
asked on
jQuery Issue in IE 9
I'm having trouble with jQuery in IE 9. I have a google map finder api to look up service locations. If I use document ready it won't load at all. If I remove it, it works patially however, my list of countries does not show up in the dropdown.
Any help will be appriciated:
cohr-dev-ee01.azurewebsite s DOT net/support/main/support-c ontact-loc ator
Any help will be appriciated:
cohr-dev-ee01.azurewebsite
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't have IE 9 either. You could try something like this: https://spoon.net/browsers
According to the download page http://jquery.com/download/ , jQuery 2.x does not support Internet Explorer 6, 7, or 8. It does not mention IE9.
I just looked at it in IE9 and the problem may not be jQuery. The two country dropdowns have the same id="map_form" which may cause a problem. 'id's are supposed to be unique. Make one of them id="map_form2".
ASKER
Here is the line that is to populate the dropdown;
Should I use something else? Sorry, still learning...
for (i = 0; i < countries.length; i++) {
jQuery("#country_select").append('<option value="' + countries[i] + '">' + countries[i] +'</option>');
jQuery("#country_select_2").append('<option value="' + countries[i] + '">' + countries[i] +'</option>');
}
instead of using jQuery("...Should I use something else? Sorry, still learning...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found that it is probably the way I have formatted my Append. I have re-posted the question, in a different manner. Thanks for helping me thus far.
ASKER