You'll never see it in the 'view source' if its dynamically added. If you
use the Inspect function of firefox you can see the dynamically added
content. I think the IE developer toolbar does the same thing.

Make sure that you are setting the length of the selects option array and
setting a text/value pair for each entry in the drop down.

When you say 'no results', what do you mean? No results when you submit the
form?

Brook

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Yaz
Sent: October 19, 2007 11:59 AM
To: jQuery (English)
Subject: [jQuery] Re: AJAX and dynamically created dropdowns


With the select plugin I get the same results.
Added the form tag. Still no results.

Btw, I noticed that even though in Firefox the dropdown does get
populated, at view source there is no list of schools....

Thanks for the suggestion guys.

-yaz

On Oct 19, 2:31 pm, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
> FWIW, I've never had any problems with id and name being the same on
> controls in IE. I don't see a <form> tag on the page, maybe that's the
> issue?
>
> You might also want to try this:
>
> http://www.texotela.co.uk/code/jquery/select/
>
> - Jack
>
> Chris Jordan wrote:
> > Could it be because you're name and id are identical?
>
> > <select name="SchoolID" id="SchoolID">
> > </select>
>
> > Perhaps IE doesn't like this?
>
> > Just a guess.
>
> > Chris
>
> > On 10/19/07, *Yaz* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> >     Hello everyone,
>
> >     I have a script that basically just reads some data from an xml
file,
> >     then the data gets loaded into a <select> dropdown, by dynamically
> >     creating <option> tags.
>
> >     Here's the working sample:
> >    http://yazmedia.com/sandbox/
>
> >     View source for the code. XML:http://yazmedia.com/sandbox/data.html
>
> >     It works fine in Firefox, but in IE 7 or 6 it doesn't. I tried
> >     using a
> >     function "addOption()" that I found online, to see if at least I was
> >     doing something wrong in my code, but still neither option works.
>
> >     Anything that could shed a little light into this would be much
> >     appreciated.
>
> >     -yaz
>
> > --
> >http://cjordan.us



Reply via email to