New to Kendo UI for jQuery? Start a free 30-day trial

Item

methods

Gets the item DOM element by index.

Parameters:indexNumber

The zero-based index of the item.

Returns:jQuery

the item found at the specified index.

<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>
Not finding the help you need?
Contact Support