thanks for your suggestion, though i hadn't given it a shot before i figured something else out. but im thankful for your quick response!
On Jun 5, 1:19 pm, waseem sabjee <waseemsab...@gmail.com> wrote: > try this > > notice the single and double quote usage > > '<div id="mydiv"><\/div>'; > > notice i wrapped the whole statement in single quotes so that i may use > double quotes just like i do for normal html > > then i used <\/div> instead of </div> this is due to the way JavaScript > escapes text. > > '\/' will output '/' > you probably got a syntax error from after that line ? > > $.getJSON("links.htt", { "get_favorites" : 1 }, function(data){ > $.each(data, function(key) { > $("#selectModule").append( > $("<option></option>").html( > > > > > key).attr("value", key) > > ); > > > // ie6 messes this up?!?! > > $(".pulldownContainer[relid=selectModule]").children > > (".pulldownOptionsContainerHidden").append( > > $('<div > > class="pulldownOption"><\/div>').html(key).attr("value", > > key) > > ); > > > }); > > }); > On Fri, Jun 5, 2009 at 7:03 PM, liam <liamgriffi...@gmail.com> wrote: > > > Not sure if I am doing something wrong here, but this fails in IE6: > > > $.getJSON("links.htt", { "get_favorites" : 1 }, function(data){ > > $.each(data, function(key) { > > $("#selectModule").append( > > $("<option></option>").html(key).attr("value", key) > > ); > > > // ie6 messes this up?!?! > > $(".pulldownContainer[relid=selectModule]").children > > (".pulldownOptionsContainerHidden").append( > > $("<div > > class='pulldownOption'></div>").html(key).attr("value", > > key) > > ); > > > }); > > }); > > > The options append fine, but the divs don't. Thanks in advance if you > > can be of some help!