<script>
$('Machine_location_id').observe("change", function (event) {
console.log("here");
var pars = "loc_no=" + $F('Machine_location_id');
new Ajax.Updater('load_floor', '/adminctrls/loadfloormachine', {
parameters: pars
});
});
function load_floor() {
console.log("here");
var pars = "floor_no=" + $F('Machine_floor_id');
new Ajax.Updater('load_cubicle', '/adminctrls/loadcubiclemachine', {
parameters: pars
});
}
</script>
在此 ajax 代码中,应在选择位置时加载该位置下的楼层。这工作正常,但我无法在 jquery mobile 中加载它们,我该如何解决这个问题?