Hi, Try the plugin jSelect to populate a Select element (with JSON, XML, Array and more): http://www.rvdevsign.net/sources/javascript/jselect/jselect.html
I hope that it could help you to bypass this problem. On Mar 3, 3:52 pm, davidnext <da...@nextinteractives.com> wrote: > Hi All, > > I am having a problem with loading an HTML file to populate a dropdown > as follows with names of states in the USA: > > $("select[name=step_2]").load("./includes/usa.html"); > > The HTML it is going into is as follows: > > <label for="step_2" class="disabled">* STEP 2) Select your State/ > Province:</label> > <span class="step_2"><select disabled="disabled" name="step_2"> > Inserted dropdown goes here. > </select></span> > > When running the script I get the message in Firebug: > > Syntax error: [Break on this error] _block_windowOpen(); function > (X) {\n > xpopup.js (line 80) > > This works when running on a local wamp server but fails on remote > servers...any ideas? Thanks.