HTML部分
<input id="c-s_id" data-rule="required" min="0" data-source="train/school/index" class="form-control selectpage" name="row[s_id]" type="text" value="">
<input id="c-t_id" data-rule="required" min="0" data-source="train/train/index" class="form-control selectpage" name="row[t_id]" type="text" value="">
JS部分
api: {
bindevent: function () {
$(document).on("change", "#c-s_id", function () {
$('#c-t_id').selectPageClear();
});
$("#c-t_id").data("params", function (obj) {
return {custom: {s_id: $("#c-s_id").val()}};
});
Form.api.bindevent($("form[role=form]"));
}
}
发表评论 取消回复