开发者

CSS and/or jQuery to add little clickable image to multiple select list

开发者 https://www.devze.com 2023-01-19 03:36 出处:网络
I have a select list with multiple rows, and I want it to have a small X image at the end of each row so it deletes that row.开发者_如何学运维

I have a select list with multiple rows, and I want it to have a small X image at the end of each row so it deletes that row.开发者_如何学运维 Any idea how I can do that through CSS or jQuery or something?? Thanks


Create one div (your "drop-down button") and another hidden div for the container (your "menu" that contains all those rows with images), assign onClick event to the drop-down, so when it's clicked you will toggle your menu.


Your best bet is to use a jQuery plugin like this one: http://plugins.jquery.com/project/dropdownReplacement

It allows you to do a lot more with textbox and select fields in terms of styling than a traditional HTML select/option fields would allow for.

0

精彩评论

暂无评论...
验证码 换一张
取 消