HTML Part

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 Part

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

Comment list count 0 Comments

No Comments