如何获取下拉的选定的项目在剑道UI文本? [英] How to Get Dropdown's Selected Item's text in Kendo UI?
本文介绍了如何获取下拉的选定的项目在剑道UI文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的剑道UI控件。我想在jQuery的下拉列表中选中的文本。我已经使用这个语法:
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").text();
我能够获得除了IE以外所有浏览器中的文本。我不知道这是为什么不工作在IE,请帮助我。是否有任何其他方式来获得所选文本?
I am able to get the text in all browsers except IE. I don't know why this is not working in IE, please help me. Is there any other way to get selected Text ?
推荐答案
为了得到一个DropDownList使用命令如下的文本值:
In order to get text value of a DropDownList use command as below :
$("#ddl").data("kendoDropDownList").text();
这篇关于如何获取下拉的选定的项目在剑道UI文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文