开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜