Hello everyone, This code I wrote in October of 2006 using 1.0.x and it worked fine when I wrote it.
$("#major_cats").change(function(){ $("#subcats").html(); $.post('sublist.mas' ,{ super_id: $("#major_cats").val(), market: 1, year: 2007 }, function(data) { $("#subcats").html(data); ///THIS LINE DOESN'T WORK IN 1.1.2 $("#minor_cats").change(function(){ document.location='lists/?minor_id=' + $(this).val(); }); }); }); I was called to this code because someone noticed it wasn't working any longer. We have upgraded to 1.1.2 and I thought that might be the problem. I tried downgrading, but no luck. I'm not sure how the code once worked, but it did, and it should still according to the docs. The post to sublist.mas returns the following: <br clear="all"/> <select id="minor_cats"> <option> -- View Sub Category List --</option> <option value="4">Advertising Agencies (1)</option> <option value="15">Wireless Communication (1)</option> <option value="23">Printing Companies/Copy Centers (1)</option> <option value="109">Web Design/Hosting Companies (1)</option> <option value="128">Film/Video Production Companies (1)</option> <option value="140">Telecommunications Cos./Equipment/Retailers (1)</option> <option value="192">Promotions Firms (1)</option> </select> This html is not rendered in the #subcats div, nor is an error thrown. The only way I have managed to get it working is to change this line: $("#subcats").html(data); to this: $("#subcats").get(0).innerHTML = data; This only seems to happen when the html to be rendered has a <select> in it. Has anyone else seen this problem? Thanks, Kevin