I have a div
with tt
ID and I write code in JavaScript to add title
attribute (tooltip
) at runtime code given as:
$("#tt")
.css("left", (mouse.x - 240) + "px")
.css("top", (mouse.y - 258) + "px")
.attr("title", title)
.tooltip('show');
Now I want set color at title
attribute. Please suggest me how to make it work.