select
Gets selected items if no parameters are passed. Or selects/deselects specific item.
Parameters
element HTMLElement|jQuery
(required)
The element to be selected/deselected.
state Boolean
(optional)
Forces the selected state to the specified one.
Returns
jQuery
if no element is specified returns the currently selected one.
Example
<div id="chiplist"></div>
<script>
var chiplist = $("#chiplist").kendoChipList({
selectable: "single",
items: [
{ label: "Home", icon: "home" },
{ label: "Info", icon: "info-circle" },
{ label: "Contact", icon: "envelope" }
]
}).data("kendoChipList");
chiplist.select(chiplist.item(1));
alert(chiplist.select().eq(0).text());
</script>