I have jQuery UI Multiselect Next http://quasipartikel.at/multiselect_next I want to highlight an item using a colour.
For example, I have:
<select id="countries" class="multiselect" multiple="multiple" name="countries[]">
<option value="Afghanistan" selected="selected">Afganistan</option>
<option value="Albania" selected="selected">Albania</option>
<option value="Austria" selected="selected">Austria</option>
<option value="Germany" selected="selected">Germany</option>
</select>
Is possible highlight Germany in red?
I am using this to highlight the 4th row:
.ui-multiselect ul.selected > li:nth-child(3)
{
background:none;
background-color:green;
}
If you want to do it for multiple replace li
with li:nth-child(2n+1)
for all odd etc…
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.