ctrlhxj/Stock_Twitter — Issue #2: user_profile.js 里面的选省份自动populate城市不work
Author: ctrlhxj
Created: 2012-01-15 23:30:00+00:00
State: open

好像你以前把里面的method换成
$.fn.extend({
/**
* Hook up province select menu with city select menu
*/
locationize: function(city_dom) {
if (!$(city_dom).length) return false;

var instance_ = this;
$(this).change(function(){
var provinceId = $(instance_).find('option:selected').val();
$.get(
'/locations/' + provinceId + '/get_cities.json',
function(data) {
if ($.isResponseValid(data))
$(city_dom).html(data.userData).selectmenu().selectmenu((data.userData == "")?'disable':'enable');
}
);
});

$(this).change(); // On page load, update the city
}
});

貌似不work了