Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148885 | Nov 6,2019 02:22 PM UTC | Nov 7,2019 06:49 AM UTC | ASP.NET Core | 1 |
![]() |
Tags: DropDownList |
<script>
function getValue(args)
{
var ddl = $("#TypeList").data("ejDropDownList");
alert(ddl.getSelectedValue());
}
</script> |
$("#TypeList").ejDropDownList({
dataSource: dataManagerType,
fields: { value: "Name", text: "TypeId" },
enableFilterSearch: true,
enabled: true,
change: "GetSpecList",
validationRules: { required: true },
validationMessage: { required: 'is required.' },
});
function GetSpecList(args) {
console.log(args.selectedText); // get text
console.log(args.selectedValue); //get value
} |
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.