Using optiontransferselect tag & tooltips

Posted on 2011-10-03
Last Modified: 2012-05-12
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 ?

Question by:abuyusuf35

    Author Comment

    Any ideas ?
    LVL 19

    Accepted Solution

    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 (

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    Suggested Solutions

    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now