Edit this page

current

Get the currently selected Button.

Returns

jQuery the jQuery object representing the currently selected button.

Example - get the index of the currently selected Button

<ul id="buttongroup">
    <li>Option 1</li>
    <li>Option 2</li>
    <li>Option 3</li>
</ul>

<script>
    $("#buttongroup").kendoButtonGroup({
        select: function(e) {
            var index = this.current().index();
            console.log(index);
        }
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy