Using optiontransferselect tag & tooltips

We are using this struts tag to display a list of values for selection - we also need to have some tool tip support whereby elements in the select boxes provide a tool tip on mouse over - any ideas how to do this ?

Thanks
abuyusuf35Asked:
Who is Participating?
 
Jim CakalicSenior Developer/ArchitectCommented:
Since the control doesn't provide this behavior you'll have to write some JavaScript that runs on page load, queries each Select for its Options and sets the title attribute of the Option. Depending on which browsers/versions you are targeting (doesn't work in IE6) this should add a simple browser default tooltip to each Option. If you want something fancier you could implement an onmouseover function or use something like jQuery Tooltip (http://flowplayer.org/tools/tooltip/index.html).

Not sure whether this will work as the user moves Options between Selects. If Option objects are preserved (removed from one Select and added to the other) then I don't see why it wouldn't work. If not (a new Option object is created and the old one abandoned when moving between Selects) then I'd have to give it a little more thought as to how to dynamically set the title or attach onmouseover to the new Option object.

Regards,
Jim
0
 
abuyusuf35Author Commented:
Any ideas ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.