yanickrochon / jquery.uix.multiselect

Completely rewritten, multiselect widget with a more concise API
http://mind2soft.com/labs/jquery/multiselect/
MIT License
139 stars 62 forks source link

Ability to add hover over text to selected & available items [ENHANCEMENT] #74

Closed zoltan-fedor closed 11 years ago

zoltan-fedor commented 11 years ago

Hi, It would be nice to have the ability to add hover over text to the selected and available items in the list. In case if long text would make it too heavy, then the ability to load the hover over text via ajax might be desired. Thanks

yanickrochon commented 11 years ago

You can get around this by doing :

// remplace '#multiselect' with your actual multiselect element selector
$("#multiselect").next().on("mouseover", ".option-element", function(evt) {  
    /* evt.currentTarget is the DIV element for the list option */
});

If you want more control over the rendering of each element, take a look at optionRenderer (See the wiki).

zoltan-fedor commented 11 years ago

Thanks, that has worked! (actually used mouseenter and not mouseover, but otherwise about the same)