I\'m trying to use jQuery Tooltip to display a different colour tooltip for errors. I can do this fine with static content using the tooltipClass and styling that class appropri
As ninja said in the comment I just placed the above code in the errorPlacement function for the validate plugin:-
errorPlacement: function(error, element)
{
element.attr('title', error.text());
$(".error").tooltip(
{
position:
{
my: "left+5 center",
at: "right center"
},
tooltipClass: "ttError"
});
}