4 Answers, 1 is accepted
0

mgs
Top achievements
Rank 1
answered on 08 Jul 2013, 05:54 AM
When calling "kendoSlider" on a JQuery object, that object will be converted into a Slider widget, and the JQuery object will be returned. However, calling "data" on a JQuery object will give back the Kendo Slider widget, which must have been created with "kendoSlider" before.
So your first statement results in a Kendo Slider widget being assigned to the variable. And your second assignment results in a JQuery object being assigned to the variable.
Michael G. Schneider
So your first statement results in a Kendo Slider widget being assigned to the variable. And your second assignment results in a JQuery object being assigned to the variable.
Michael G. Schneider
0

CH
Top achievements
Rank 1
answered on 08 Jul 2013, 05:58 AM
I see.. thanks for your explanation!
0
Hi Cheng,
The data() method is a JQuery method, which is used to store data associated with a specified element. You could also take a look at the following documentation page for additional details.
I wish you a great day!
Dimiter Madjarov
Telerik
The data() method is a JQuery method, which is used to store data associated with a specified element. You could also take a look at the following documentation page for additional details.
I wish you a great day!
Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

CH
Top achievements
Rank 1
answered on 08 Jul 2013, 06:35 AM
I see.. i'm understand now, thanks..