467,077 Members | 932 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

How to display tooltips(Title) for options of the multiselect tag

Hi All,

i am having a multi select something like this
Expand|Select|Wrap|Line Numbers
  1. <select id="id1" name="selectName" multiple="multiple" size="24" style="width: 228px;" onclick="addBttnHilight()" ;="">
  2.   <option title="Budget Legislation" value="297767" id="297767">
  3. Budget Legislation
  4.   </option>
  5.   <option title="Budget Materials" value="297764" id="297764">
  6. Budget Materials
  7.   </option>
  8. </select>
Now what i want to do is when a user hover the option text it should display some text(which is set by me). I tried to do it by specifying that text in the title attribute of option tag as shown in the above code. It works fine in Mozilla and IE 7 but its not working in IE6.0 and Safari browsers. Can anyone please help me.

Thanks
Jan 8 '08 #1
  • viewed: 7772
Share:
1 Reply
helimeef
Hi All,

i am having a multi select something like this
Expand|Select|Wrap|Line Numbers
  1. <select id="id1" name="selectName" multiple="multiple" size="24" style="width: 228px;" onclick="addBttnHilight()" ;="">
  2.   <option title="Budget Legislation" value="297767" id="297767">
  3. Budget Legislation
  4.   </option>
  5.   <option title="Budget Materials" value="297764" id="297764">
  6. Budget Materials
  7.   </option>
  8. </select>
Now what i want to do is when a user hover the option text it should display some text(which is set by me). I tried to do it by specifying that text in the title attribute of option tag as shown in the above code. It works fine in Mozilla and IE 7 but its not working in IE6.0 and Safari browsers. Can anyone please help me.

Thanks
There really isn't any way to get around that, it's the browser developers' fault for not supporting the W3C standards. You could, however, use javascript to show/hide a tooltip <div> when you mouseover/mouseout of one, but that would not be as accessible; because if users have JS disabled it wouldn't work.
Jan 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by heather.memmel@gmail.com | last post: by
reply views Thread by glhanson@gmail.com | last post: by
2 posts views Thread by Rathtap | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.