I didn't want to have to do it but this works: document.getElementById('theDiv').innerHTML = "<input type='text' name='city[]' id = 'city"+ndx+"' class='auto-complete-city'>";
This is my typical work around for IE. Michele > -----Original Message----- > From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] > On Behalf Of Ajai Khattri > Sent: Wednesday, August 19, 2009 1:18 AM > To: NYPHP Talk > Cc: javascrip...@meetup.com > Subject: Re: [nyphp-talk] HTML Javascript Php Arrays > > On Tue, 18 Aug 2009, Michele Waldman wrote: > > > I'm trying to dynamically create an array in javascript to pass to php. > > > > This works in FF, but not IE 7. Does anyone know how to make this work > in > > IE? > > You probably should look at using Prototype or JQuery to do this kind of > stuff since those frameworks isolate you from having to deal with > differences across browers. > > > > -- > Aj. > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php