highlight - jquery Chosen Higlight option in Multiselect -


in great jquery chosen plugin (http://harvesthq.github.io/chosen/) possible highlight option within multiselect. image more description:enter image description here

edit: sorry unclear question. great if highlight fires givven attribute in option tag. f.e. class name or "name"

<option value="xyz" selected="selected" class="active" name="active">item</option> 

thanks,

t book

try this,

css

.active{     background : #ff0 !important; } 

script

$("select").chosen().change(function(){     $('li.search-choice').removeclass('active');     $('li.search-choice:last').addclass('active'); }); 

live working demo


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -