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.
精彩评论