You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

using a custom attribute possible? Created Feb 17, 2010

This thread is solved

Views: 659     Replies: 1     Last reply Feb 17, 2010  
You must login first before you can use this feature

solitario

Posts: 4

Registered:
Feb 17, 2010

using a custom attribute possible?

Posted: Feb 17, 2010

Hello all.
My initialization code only seems to work with the "title" attribute. Is there some way I can use a custom attribute, for instance, name it "tooltip" so that the default "title" attribute will not show up in IE? It's not valid W3C, but whatever.
Many thanks.

<img src="whatever.jpg" tooltip="Click here" />

$("#div_container img[tooltip]").tooltip('#demotip');

solitario

Posts: 4

Registered:
Feb 17, 2010

» using a custom attribute possible?

Posted: Feb 17, 2010

Reply to: using a custom attribute possible?, from solitario
Got it.
In the js file, beginning with line 184:

var pretimer = 0, title = trigger.attr("tool");

if (title && conf.cancelDefault) {
trigger.removeAttr("tool");
trigger.data("title", title);
}

Then in the initialization code, I set it to use an attribute named "tool".