Combobox item style

╄→尐↘猪︶ㄣ 提交于 2019-12-06 16:41:12

If it's a jQuery object, you should replace:

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

With:

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

$items[1] gives you the DOM object which doesn't have the jQuery addClass function. $items.eq(1) gives you the jQuery object which has the jQuery addClass function.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!