span jQuery

A jQuery object of the span element which holds the selected text.

Example - modify span element

<input id="dropdownlist" />
<script>
$("#dropdownlist").kendoDropDownList({
    dataSource: [
      { name: "Apples" },
      { name: "Oranges" }
    ],
    dataTextField: "name",
    dataValueField: "name"
});

var dropdownlist = $("#dropdownlist").data("kendoDropDownList");

var span = dropdownlist.span;

span.css("background-color", "red");
</script>
In this article