Jquery 组合框项目样式

Jquery 组合框项目样式,jquery,asp.net-mvc,combobox,telerik,telerik-mvc,Jquery,Asp.net Mvc,Combobox,Telerik,Telerik Mvc,我的项目是asp.NETMVC,使用TelerikMVC组合框。我可以更改第一项的sytle,如果我使用: var item = combobox.dropDown.$items.first(); item.addClass('test'); 或使用以下命令更改所有项目: combobox.dropDown.$items.addClass('test'); 但我只需要更改特定项目(基于模型),我尝试了: combobox.dropDown.$items[1].addClass('test')

我的项目是asp.NETMVC,使用TelerikMVC组合框。我可以更改第一项的sytle,如果我使用:

var item = combobox.dropDown.$items.first();
item.addClass('test');
或使用以下命令更改所有项目:

combobox.dropDown.$items.addClass('test');
但我只需要更改特定项目(基于模型),我尝试了:

combobox.dropDown.$items[1].addClass('test');
我得到这个错误:
对象不支持属性或方法“addClass

如果它是jQuery对象,则应替换:

combobox.dropDown.$items[1].addClass('test');
与:

$items[1]
提供的DOM对象没有jQuery
addClass
函数。
$items.eq(1)
提供具有jQuery
addClass
函数的jQuery对象

combobox.dropDown.$items.eq(1).addClass('test');