Hi Rolf,

The way it's set up now, it requires some sort of attribute to know where to find the content. It doesn't have to be the rel attribute if you use the "tipAttribute" option.

One thing you could do is set the value of that attribute in your script. For example, this would set the "name" attribute of all <td class="green"> to "#msg1" and then apply the clutip to them:

$('td.green').attr({name: '#msg1'}).cluetip({tipAttribute: 'name', local: true});


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 7, 2007, at 4:46 PM, rolfsf wrote:


I'm using ClueTip, and loading the content  from some hidden divs
using the default "rel" attribute.

Is there a way I can do this without using the "rel" attribute?

For example:
I have some cells in a table:

<td class="green"><a href="blah">99</a></td>
<td class="red"><a href="blah">99</a></td>

and some hidden divs:
<div id="msg1">this is green</div>
<div id="msg2">this is red</div>

If I hover over an anchor inside a td with class="green", then I want
to grab the content from div#msg1. Can I do this without having to
add  rel="#msg1" to every "green" anchor?

Thanks!

Reply via email to