item

Gets the item DOM element by index.

Parameters

index Number

The zero-based index of the item.

Returns

jQuery the item found at the specified index.

Example - get the second item

<div id="segmentedControl"></div>
<script>
$("#segmentedControl").kendoSegmentedControl({
  items: [
    { text: "Option 1", value: "option1" },
    { text: "Option 2", value: "option2" }
  ]
});
var segmentedControl = $("#segmentedControl").data("kendoSegmentedControl");
var secondItem = segmentedControl.item(1);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(secondItem.attr("data-value"));
</script>
In this article
item
Not finding the help you need?
Contact Support