To bind text change json value

  $("#txtUserID").change(function () {
                var url = "http://localhost:61200/api/Login/" + $("#txtUserID").val();
                $.ajax({
                    dataType: "json",
                    url: url,
                    success: function (response) {

                        $("#ddlBranch").select2("val", response.BRANCH);
                        $("#txtUserName").val(response.USER_NAME);
                        console.log(response);
                    }
                });
            });

Search This Blog

Arsip Blog

Powered by Blogger.

Recent

Comment

Author Info

Like This Theme

Popular Posts

Video Of Day

jishnukanat@gmail.com

Sponsor

Most Popular