The simplest implementation using tooltip plugin (http://docs.jquery.com/Plugins/Tooltip) will be just:
$("a").tooltip();
The above use title
as the default tooltip content.
Suppose you have X items to be tooltipped with X custom content in a sequence, here's one way
In your code-behind, string up the tooltips like this:
protected string tooltips;
//perform your data retrieval and create a string like this:
tooltips = "'tip1','tip2','tip3'";
In your javascript, to assign the tooltip string array to a javascript array:
var myToolTips = new Array(<%=mytooltips%>);
Then iterate through the items using JQuery's each()
:
$(".someclass a").each(function(i){
$(this).tooltip({
showBody: myToolTips[i];
});
})