Easy Ui Jquery easyui-combobox change onSelect event

<input id="ShopId" class="easyui-combobox" name="ShopId"  data-options="valueField:'ShopID',textField:'ShopName',url:'Outlet/LoadAllShopsForDropDown'">

$('#ShopId').combobox({

    onSelect: function (record) {

        console.log(record);

        $.ajax({

            type: "get",

            url: 'CustomerProfile/LoadAllByShopId',

            dataType: 'json',

            data: { ShopID: record.ShopID },

        }).done(function (responseJson) {

            $('#dg').datagrid('loadData', responseJson);

        });

    }



});

Comments

Popular posts from this blog

Provision AWS EC2 Instance and RDS with Terraform, and Deploy Spring Boot App to EC2 Instance via GitHub Action Pipeline

JQuery UI Autocomplete, custom HTML structure for result?

Easy Ui Jquery easyui-textbox change onChange event