Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141379 | Dec 8,2018 08:09 AM UTC | Dec 17,2018 06:07 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: Dropdown List |
<script>
function onChange(args) {
$.ajax({
type: "GET",
url: '@Url.Action("CountrySelected")',
data: { code: args.value },
contentType: "application/json;charset=utf-8",
dataType:"json",
success: function (result) {
debugger;
var cityDropDown = document.getElementById("Cities").ej2_instances[0];
cityDropDown.dataSource = result;
//cityDropDown.refresh();
cityDropDown.dataBind();
alert(result);
},
error: function () {
alert("Error while loading data");
}
});
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.