0

I'm trying to use the flowplayer tooltip tool (http://flowplayer.org/tools/demos/tooltip/table.html) to display a tooltip over a particular element.

Here is my html:

<table id="menu-table" cellspacing="0" cellpadding="0" width="714" border="0" style="padding-top: 4px;">
 <tr>

  <td title="menu-one" style="background: url('images/menu-button.gif') top left no-repeat; text-align: center; vertical-align: middle; height:35px; width:115px; padding-right: 6px;">

   <a href="about.php">About</a>
   <div id="tooltip" class="tooltip">Tooltip text.</div>
  </td>
 </tr>
</table>

Note that the tooltip div part above is styled as display:none.

Here is the selector I'm trying to use...

$("#menu-table td[menu-one]").tooltip();

The tooltip() should display the hidden div, but I'm sure I have the selector wrong.

Any suggestions?

4

1 に答える 1

0

試す

$("#menu-table td[title='menu-one']").tooltip();

値が「menu-one」の引数タイトルを持つTDを選択するには

于 2010-11-04T21:34:05.033 に答える