Michael Prinsloo schrieb: > 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 > > Mike
I think you cannot use innerHTML (== load()) for a select box in IE. Sam made a nice plugin for that or just use document.createElement or the Option constructor (new Option()) -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/