Ashwin
Ashwin

Reputation: 12421

How to get value of kendo combobox in the change event

I have 2 questions on kendo combobox change event.

  1. On change event I want to get the selected value of that combobox.

  2. I want to get the reference to the parent element or an element itself.

How to do that? Fiddle is here

Any help is greatly appreciated.

Upvotes: 8

Views: 24956

Answers (1)

Miroslav Popovic
Miroslav Popovic

Reputation: 12128

Just use this.value();

alert("value: " + this.value());

http://demos.kendoui.com/web/combobox/events.html

Edit:

For question #2 - use this.element to get the element itself, and this.element.parent() to get element's parent.

Upvotes: 23

Related Questions