How to Get Dropdown's Selected Item's text in Kendo UI?

后端 未结 7 810
遥遥无期
遥遥无期 2021-02-05 02:05

I am using Kendo UI Controls. I want to get the selected text of the dropdown list in jquery. I have used this syntax :

 $(\"#ddl\").data(\"kendoDropDownList\")         


        
7条回答
  •  野性不改
    2021-02-05 02:40

    You can try like this

     var ddl= $("#ddl").data("kendoDropDownList").dataItem($("#ddl").data("kendoDropDownList").select()).FieldName;
    //FieldName is the text field of DataSource ---  .DataTextField("FieldName")
    

提交回复
热议问题