For reasons unknown, this code snipnet isn’t working:
$("#lbxArea").live ('change', function () {
$("#lbxStation").load ('../data/stations',
{ areaID: $("#lbxArea").val () });
});
I can see on Firebug that the request goes out and the data comes back and looks good. lbxStation is a <select> element and the returned data is HTML of <option> elements. When this runs, the select element doesn’t change.
Works for me:
http://sandbox.phpcode.eu/g/aabeb.php