On 09/11/06, Michael Prinsloo <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am generating some <option> tags with php and then loading them into a
> select box with jQuery's load method as follows:
>
> The Select Box:
>
> <select id="selectbox"></select>
>
> The Javascript:
>
> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});
>
> This works well with Firefox but IE simply displays an empty select box.
>
> Loading some html into a div, with the same method and the same php file,
> works perfectly in IE.
>
> What could I be missing? I have to demo this application for a client in
> less than 20 hours, and they only use IE! Have spent the last hour trying to
> figure this one out.
>
> Any help, or nudge in the right direction would be much apreciated.
>
> Kind Regards
>
> MikeYou may find this useful: http://www.texotela.co.uk/code/jquery/select/ You can add multiple options by returning the options as a JSON string in your php script (untested): $.getJSON("phpfile.php", {action: "getoptions", alpha: "A"}, function(json){ $("#selectbox").addOption(json, false); } ) _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
