HTML部分

image.png

<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部分

image.png

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]"));
  }
}
点赞(0)

评论列表 共有 0 评论

暂无评论